diff --git a/tests/PHPCensor/Plugin/SampleFiles/phpunit_money.txt b/tests/PHPCensor/Plugin/SampleFiles/phpunit_money.txt index 101cafc5..5afb5381 100644 --- a/tests/PHPCensor/Plugin/SampleFiles/phpunit_money.txt +++ b/tests/PHPCensor/Plugin/SampleFiles/phpunit_money.txt @@ -288,27 +288,6 @@ ], "message": "Skipped Test: This test is currently failing", "output": "" -}{ - "event": "testStart", - "suite": "", - "test": "Tests\\Money\\MoneyTest::testDepends1" -}{ - "event": "test", - "suite": "", - "test": "Tests\\Money\\MoneyTest::testDepends1", - "status": "fail", - "time": 0.00078010559082031, - "trace": [ - { - "file": "\/path\/to\/build\/tests\/MoneyTest.php", - "line": 105, - "function": "assertTrue", - "class": "PHPUnit_Framework_Assert", - "type": "::" - } - ], - "message": "Failed asserting that false is true.", - "output": "" }{ "event": "test", "suite": "", @@ -316,12 +295,25 @@ "status": "error", "time": 0, "trace": [], - "message": "Skipped Test: This test depends on \"Tests\\Money\\MoneyTest::testDepends1\" to pass.", + "message": "Skipped Test: This test depends on \"Tests\\Money\\MoneyTest::testFail\" to pass.", "output": "" }{ "event": "suiteStart", "suite": "Tests\\Money\\Parser\\IntlMoneyParserTest", "tests": 23 +}{ + "event": "testStart", + "suite": "Tests\\Money\\MoneyTest", + "test": "Tests\\Money\\MoneyTest::testFactoryMethods" +}{ + "event": "test", + "suite": "Tests\\Money\\MoneyTest", + "test": "Tests\\Money\\MoneyTest::testFactoryMethods", + "status": "warning", + "time": 0.06482195854187, + "trace": [], + "message": "Trying to @cover or @use not existing method \"Monies::test\".", + "output": "" }{ "event": "suiteStart", "suite": "Tests\\Money\\Parser\\IntlMoneyParserTest::testIntlParser", @@ -339,19 +331,6 @@ "trace": [], "message": "", "output": "" -}{ - "event": "testStart", - "suite": "Tests\\Money\\MoneyTest", - "test": "Tests\\Money\\MoneyTest::testFactoryMethods" -}{ - "event": "test", - "suite": "Tests\\Money\\MoneyTest", - "test": "Tests\\Money\\MoneyTest::testFactoryMethods", - "status": "warning", - "time": 0.06482195854187, - "trace": [], - "message": "Trying to @cover or @use not existing method \"Monies::test\".", - "output": "" }{ "event": "testStart", "suite": "Tests\\Money\\Parser\\IntlMoneyParserTest::testIntlParser", diff --git a/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php b/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php index 55ea7f50..6cd864cf 100644 --- a/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php +++ b/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php @@ -21,7 +21,7 @@ class PhpUnitResultTest extends \PHPUnit_Framework_TestCase $output = $parser->parse()->getResults(); $errors = $parser->getErrors(); - $this->assertEquals(8, $parser->getFailures()); + $this->assertEquals(7, $parser->getFailures()); $this->assertInternalType('array', $output); $this->assertInternalType('array', $errors); $this->assertNotEmpty($output);