Skip to content

Instantly share code, notes, and snippets.

@claylo
Created August 15, 2012 22:26
Show Gist options
  • Save claylo/3364287 to your computer and use it in GitHub Desktop.
Save claylo/3364287 to your computer and use it in GitHub Desktop.
Log of installing PHPUnit via composer
clay:test clay$ cat composer.json
{
"name": "test/test",
"require": {
"phpunit/phpunit": "3.6.*"
},
"repositories": [
{ "type": "pear", "url": "http://pear.symfony-project.com" },
{ "type": "git", "url": "http://github.com/claylo/phpunit.git" },
{ "type": "git", "url": "http://github.com/claylo/dbunit.git" },
{ "type": "git", "url": "http://github.com/claylo/php-code-coverage.git" },
{ "type": "git", "url": "http://github.com/claylo/php-file-iterator.git" },
{ "type": "git", "url": "http://github.com/claylo/php-invoker.git" },
{ "type": "git", "url": "http://github.com/claylo/php-text-template.git" },
{ "type": "git", "url": "http://github.com/claylo/php-timer.git" },
{ "type": "git", "url": "http://github.com/claylo/php-token-stream.git" },
{ "type": "git", "url": "http://github.com/claylo/phpunit-mock-objects.git" },
{ "type": "git", "url": "http://github.com/claylo/phpunit-selenium.git" },
{ "type": "git", "url": "http://github.com/claylo/phpunit-story.git" },
{ "packagist": false }
],
"config": {
"process-timeout": 900,
"bin-dir": "bin"
},
"minimum-stability": "stable"
}
clay:test clay$ composer --version
Composer version ebc0f88
clay:test clay$ which composer
/Users/clay/bin/composer
clay:test clay$ composer install
Initializing PEAR repository http://pear.symfony-project.com
Installing dependencies
- Installing phpunit/phpunit-story (1.0.0)
Cloning 1.0.0
- Installing phpunit/phpunit (3.6.12)
Cloning 3.6.12
- Installing phpunit/phpunit-selenium (1.2.8)
Cloning 1.2.8
- Installing phpunit/php-text-template (1.1.1)
Cloning 1.1.1
- Installing phpunit/phpunit-mock-objects (1.1.1)
Cloning 1.1.1
- Installing phpunit/php-token-stream (1.1.3)
Cloning 1.1.3
- Installing phpunit/php-timer (1.0.2)
Cloning 1.0.2
- Installing phpunit/php-invoker (1.1.0)
Cloning 1.1.0
- Installing phpunit/php-file-iterator (1.3.1)
Cloning 1.3.1
- Installing phpunit/php-code-coverage (1.1.3)
Cloning 1.1.3
- Installing phpunit/dbunit (1.1.2)
Cloning 1.1.2
- Installing pear-pear.symfony-project.com/yaml (1.0.6)
Downloading: 100%
Writing lock file
Generating autoload files
clay:test clay$ ls
bin composer.json composer.lock vendor
clay:test clay$ bin/phpunit vendor/phpunit/phpunit/Tests
PHPUnit @package_version@ by Sebastian Bergmann.
............................................................... 63 / 926 ( 6%)
............................................................... 126 / 926 ( 13%)
............................................................... 189 / 926 ( 20%)
............................................................... 252 / 926 ( 27%)
............................................................... 315 / 926 ( 34%)
............................................................... 378 / 926 ( 40%)
............................................................... 441 / 926 ( 47%)
............................................................... 504 / 926 ( 54%)
............................................................... 567 / 926 ( 61%)
............................................................... 630 / 926 ( 68%)
............................................................... 693 / 926 ( 74%)
.....................FF................EEE.F.....FFF...F...F.F. 756 / 926 ( 81%)
E.............................................................. 819 / 926 ( 88%)
............................................................... 882 / 926 ( 95%)
.............F.FSS..FFFFFFFFFFFFFFI......TemplateMethodsTest::setUpBeforeClass
.TemplateMethodsTest::setUp
TemplateMethodsTest::assertPreConditions
TemplateMethodsTest::testOne
TemplateMethodsTest::assertPostConditions
TemplateMethodsTest::tearDown
TemplateMethodsTest::onNotSuccessfulTest
FTemplateMethodsTest::setUp
TemplateMethodsTest::assertPreConditions
TemplateMethodsTest::testTwo
TemplateMethodsTest::tearDown
TemplateMethodsTest::tearDownAfterClass
Time: 50 seconds, Memory: 42.75Mb
There were 4 errors:
1) Issue578Test::testNoticesDoublePrintStackTrace
Invalid error type specified
/Users/clay/test/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php:7
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
2) Issue578Test::testWarningsDoublePrintStackTrace
Invalid error type specified
/Users/clay/test/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php:13
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
3) Issue578Test::testUnexpectedExceptionsPrintsCorrectly
Exception: Double printed exception
/Users/clay/test/vendor/phpunit/phpunit/Tests/Regression/578/Issue578Test.php:18
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
4) Issue74Test::testCreateAndThrowNewExceptionInProcessIsolation
NewException: Testing GH-74
/Users/clay/test/vendor/phpunit/phpunit/Tests/Regression/GitHub/74/Issue74Test.php:7
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
--
There were 26 failures:
1) Framework_TestCaseTest::testGlobalsBackupPre
Failed asserting that null matches expected 'a'.
/Users/clay/test/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php:245
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
2) Framework_TestCaseTest::testGlobalsBackupPost
Failed asserting that null matches expected 'a'.
/Users/clay/test/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php:287
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
3) Warning
No tests found in class "Foo_Bar_Issue684Test".
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
4) Issue244Test::testFails
Failed asserting that '123StringCode' is equal to expected exception code 'OtherString'.
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
5) Issue244Test::testFailsTooIfExpectationIsANumber
Failed asserting that '123StringCode' is equal to expected exception code 123.
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
6) Issue244Test::testFailsTooIfExceptionCodeIsANumber
Failed asserting that 123 is equal to expected exception code '123String'.
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
7) Issue433Test::testNotMatchingOutput
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'foo'
+'bar'
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
8) Issue445Test::testNotMatchingOutput
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'foo'
+'bar'
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
9) Issue503Test::testCompareDifferentLineEndings
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
#Warning: Strings contain different line endings!
foo
/Users/clay/test/vendor/phpunit/phpunit/Tests/Regression/GitHub/503/Issue503Test.php:9
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
10) DataProviderTest::testAdd with data set #2 (1, 1, 3)
Failed asserting that 2 matches expected 3.
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/DataProviderTest.php:9
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
11) DependencyFailureTest::testOne
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/DependencyFailureTest.php:6
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
12) Warning
No tests found in class "EmptyTestCaseTest".
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
13) FailureTest::testAssertArrayEqualsArray
message
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 0 => 1
+ 0 => 2
)
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:6
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
14) FailureTest::testAssertIntegerEqualsInteger
message
Failed asserting that 2 matches expected 1.
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:11
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
15) FailureTest::testAssertObjectEqualsObject
message
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
stdClass Object (
- 'foo' => 'bar'
+ 'bar' => 'foo'
)
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:22
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
16) FailureTest::testAssertNullEqualsString
message
Failed asserting that 'bar' matches expected null.
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:27
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
17) FailureTest::testAssertStringEqualsString
message
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'foo'
+'bar'
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:32
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
18) FailureTest::testAssertTextEqualsText
message
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
'foo
-bar
+baz
'
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:37
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
19) FailureTest::testAssertStringMatchesFormat
message
Failed asserting that format description matches text.
--- Expected
+++ Actual
@@ @@
-*%s*
+**
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:42
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
20) FailureTest::testAssertNumericEqualsNumeric
message
Failed asserting that 2 matches expected 1.
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:47
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
21) FailureTest::testAssertTextSameText
message
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-foo
+bar
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:52
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
22) FailureTest::testAssertObjectSameObject
message
Failed asserting that two variables reference the same object.
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:57
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
23) FailureTest::testAssertObjectSameNull
message
Failed asserting that null is identical to an object of class "stdClass".
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:62
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
24) FailureTest::testAssertFloatSameFloat
message
Failed asserting that 1.5 is identical to 1.0.
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:67
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
25) FailureTest::testAssertStringMatchesFormatFile
Failed asserting that format description matches text.
--- Expected
+++ Actual
@@ @@
-FOO
-
+...BAR...
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/FailureTest.php:73
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
26) TemplateMethodsTest::testTwo
Failed asserting that false is true.
/Users/clay/test/vendor/phpunit/phpunit/Tests/_files/TemplateMethodsTest.php:28
/Users/clay/test/vendor/phpunit/phpunit/composer/bin/phpunit:42
FAILURES!
Tests: 924, Assertions: 1434, Failures: 26, Errors: 4, Incomplete: 1, Skipped: 2.
clay:test clay$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment