Skip to content

Instantly share code, notes, and snippets.

@temp
Created June 3, 2015 08:47
Show Gist options
  • Select an option

  • Save temp/f9ae15e1a1d0e86c265a to your computer and use it in GitHub Desktop.

Select an option

Save temp/f9ae15e1a1d0e86c265a to your computer and use it in GitHub Desktop.
puli/composer-plugin phpunit
PHPUnit 4.6.10 by Sebastian Bergmann and contributors.
Configuration read from /Users/swentz/git/puli/composer-plugin/phpunit.xml.dist
.FFSSFFFFF.FFFFFFFFFFFFFFFF.........
Time: 430 ms, Memory: 10.75Mb
There were 23 failures:
1) Puli\ComposerPlugin\Tests\PuliPluginTest::testInstallNewPuliPackages with data set #0 ('post-install-cmd')
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Installing <info>vendor/packa...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Installing <info>vendor/package1</info> (<comment>package1</comment>)'
+'Installing <info>vendor/package1</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root77557/package1</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:221
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:218
2) Puli\ComposerPlugin\Tests\PuliPluginTest::testInstallNewPuliPackages with data set #1 ('post-update-cmd')
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Installing <info>vendor/packa...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Installing <info>vendor/package1</info> (<comment>package1</comment>)'
+'Installing <info>vendor/package1</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root61833/package1</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:221
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:218
3) Puli\ComposerPlugin\Tests\PuliPluginTest::testDoNotInstallPackagesWithoutInstallPath
Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) was not expected to be called.
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:263
4) Puli\ComposerPlugin\Tests\PuliPluginTest::testResolveAliasPackages
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Installing <info>vendor/packa...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Installing <info>vendor/package1</info> (<comment>package1</comment>)'
+'Installing <info>vendor/package1</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root99320/package1</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:221
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:297
5) Puli\ComposerPlugin\Tests\PuliPluginTest::testInstallAliasedPackageOnlyOnce
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Installing <info>vendor/packa...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Installing <info>vendor/package1</info> (<comment>package1</comment>)'
+'Installing <info>vendor/package1</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root39391/package1</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:221
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:332
6) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfInstallFails
Expectation failed for method name is equal to <string:writeError> when invoked 1 time(s)
Parameter 0 for invocation Composer\IO\IOInterface::writeError('<warning>Warning: Could not i...rning>', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<warning>Warning: Could not install package "vendor/package1" (at ./package1): UnsupportedVersionException: Cannot read package file /home/bernhard/Entwicklung/Web/puli/cli/puli.json at version 5.0. The highest readable version is 1.0. Please upgrade Puli.</warning>'
+'<warning>Warning: Could not install package "vendor/package1" (at ./../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root43674/package1): UnsupportedVersionException: Cannot read package file /home/bernhard/Entwicklung/Web/puli/cli/puli.json at version 5.0. The highest readable version is 1.0. Please upgrade Puli.</warning>'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:520
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:227
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:363
7) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfOverwritingPackagesInstalledByOtherInstaller
Expectation failed for method name is equal to <string:writeError> when invoked 1 time(s)
Parameter 0 for invocation Composer\IO\IOInterface::writeError('<warning>Warning: Could not i...rning>', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<warning>Warning: Could not install package "vendor/package1" (at ./package2): NameConflictException: A package with the name "vendor/package1" exists already.</warning>'
+'<warning>Warning: Could not install package "vendor/package1" (at ./../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root55525/package2): NameConflictException: A package with the name "vendor/package1" exists already.</warning>'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:520
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:227
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:403
8) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfPackageInstalledByComposerNotLoadable
Expectation failed for method name is equal to <string:writeError> when invoked 1 time(s)
Parameter 0 for invocation Composer\IO\IOInterface::writeError('<warning>Warning: The package...rning>', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<warning>Warning: The package "vendor/package1" (at ./package1) could not be loaded.</warning>'
+'<warning>Warning: The package "vendor/package1" (at ./../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root44639/package1) could not be loaded.</warning>'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:520
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:307
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:167
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:449
9) Puli\ComposerPlugin\Tests\PuliPluginTest::testDoNotWarnIfPackageInstalledByUserNotLoadable
Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) was not expected to be called.
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:471
10) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfPackageInstalledByComposerNotFound
Expectation failed for method name is equal to <string:writeError> when invoked 1 time(s)
Parameter 0 for invocation Composer\IO\IOInterface::writeError('<warning>Warning: The package...rning>', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<warning>Warning: The package "vendor/package1" (at ./package1) could not be found.</warning>'
+'<warning>Warning: The package "vendor/package1" (at ./../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root94307/package1) could not be found.</warning>'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:520
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:292
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:167
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:494
11) Puli\ComposerPlugin\Tests\PuliPluginTest::testDoNotWarnIfPackageInstalledByUserNotFound
Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) was not expected to be called.
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:516
12) Puli\ComposerPlugin\Tests\PuliPluginTest::testReinstallPackagesWithInstallPathMovedToSubPath
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Reinstalling <info>vendor/pac...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Reinstalling <info>vendor/package1</info> (<comment>package1/sub/path</comment>)'
+'Reinstalling <info>vendor/package1</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root23873/package1/sub/path</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:206
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:553
13) Puli\ComposerPlugin\Tests\PuliPluginTest::testReinstallPackagesWithInstallPathMovedToParentPath
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Reinstalling <info>vendor/pac...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Reinstalling <info>vendor/package1</info> (<comment>package1</comment>)'
+'Reinstalling <info>vendor/package1</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root42712/package1</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:206
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:588
14) Puli\ComposerPlugin\Tests\PuliPluginTest::testDoNotReinstallExistingPuliPackages
Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) was not expected to be called.
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:612
15) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfRemoveFailsDuringReinstall
Expectation failed for method name is equal to <string:writeError> when invoked 1 time(s)
Parameter 0 for invocation Composer\IO\IOInterface::writeError('<warning>Warning: Could not r...rning>', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<warning>Warning: Could not remove package "vendor/package1" (at ./package1): Exception: The exception</warning>'
+'<warning>Warning: Could not remove package "vendor/package1" (at ./../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root82879/package1): Exception: The exception</warning>'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:520
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:211
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:647
16) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfInstallFailsDuringReinstall
Expectation failed for method name is equal to <string:writeError> when invoked 1 time(s)
Parameter 0 for invocation Composer\IO\IOInterface::writeError('<warning>Warning: Could not i...rning>', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<warning>Warning: Could not install package "vendor/package1" (at ./package1): Exception: The exception</warning>'
+'<warning>Warning: Could not install package "vendor/package1" (at ./../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root64101/package1): Exception: The exception</warning>'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:520
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:227
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:166
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:685
17) Puli\ComposerPlugin\Tests\PuliPluginTest::testRemoveRemovedPackages
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Removing <info>vendor/package...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Removing <info>vendor/package2</info> (<comment>package2</comment>)'
+'Removing <info>vendor/package2</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root26592/package2</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:264
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:165
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:719
18) Puli\ComposerPlugin\Tests\PuliPluginTest::testDoNotRemovePackagesFromOtherInstaller
Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) was not expected to be called.
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:742
19) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfRemoveFails
Expectation failed for method name is equal to <string:write> when invoked at sequence index 1
Parameter 0 for invocation Composer\IO\IOInterface::write('Removing <info>vendor/package...ment>)', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Removing <info>vendor/package2</info> (<comment>package2</comment>)'
+'Removing <info>vendor/package2</info> (<comment>../../../../../../../../var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root63187/package2</comment>)'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:264
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:165
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:786
20) Puli\ComposerPlugin\Tests\PuliPluginTest::testCopyComposerPackageNameToPuli
Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) was not expected to be called.
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:811
21) Puli\ComposerPlugin\Tests\PuliPluginTest::testDoNotCopyComposerPackageNameToPuliIfUnchanged
Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) was not expected to be called.
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:833
22) Puli\ComposerPlugin\Tests\PuliPluginTest::testWarnIfRenameFails
Expectation failed for method name is equal to <string:writeError> when invoked 1 time(s)
Parameter 0 for invocation Composer\IO\IOInterface::writeError('<warning>Warning: No root pac...rning>', true) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<warning>Warning: Could not rename root package to "vendor/root": Exception: Some exception.</warning>'
+'<warning>Warning: No root package could be found.</warning>'
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:511
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:322
/Users/swentz/git/puli/composer-plugin/src/PuliPlugin.php:168
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:862
23) Puli\ComposerPlugin\Tests\PuliPluginTest::testInsertFactoryClassIntoClassMap
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-/var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root71716/My/Factory.php
+/private/private/var/folders/y8/8_557fkj5ln22v4dg7mhb2tds118mm/T/puli-plugin/PuliPluginTest_root71716/My/Factory.php
/Users/swentz/git/puli/composer-plugin/tests/PuliPluginTest.php:901
FAILURES!
Tests: 34, Assertions: 44, Failures: 23, Skipped: 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment