Skip to content
Browse files

- Merge [4690].

  • Loading branch information...
1 parent dd1ca51 commit 073a305c8a39688bc84f0c64a375d0b8d9543205 @sebastianbergmann committed
Showing with 1,980 additions and 46 deletions.
  1. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-class-extended-isolation.phpt
  2. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-class-isolation.phpt
  3. +52 −0 PHPUnit/Tests/TextUI/coverage-clover-isolation.phpt
  4. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-method-isolation.phpt
  5. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-not-private-isolation.phpt
  6. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-not-protected-isolation.phpt
  7. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-not-public-isolation.phpt
  8. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-private-isolation.phpt
  9. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-protected-isolation.phpt
  10. +56 −0 PHPUnit/Tests/TextUI/coverage-clover-public-isolation.phpt
  11. +844 −0 PHPUnit/Tests/TextUI/coverage-source-isolation.phpt
  12. +49 −0 PHPUnit/Tests/TextUI/dataset-log-xml-isolation.phpt
  13. 0 PHPUnit/Tests/TextUI/{isolated.phpt → default-isolation.phpt}
  14. +42 −0 PHPUnit/Tests/TextUI/dependencies-isolation.phpt
  15. +21 −0 PHPUnit/Tests/TextUI/dependencies-isolation2.phpt
  16. +3 −3 PHPUnit/Tests/TextUI/dependencies.phpt
  17. +3 −5 PHPUnit/Tests/TextUI/dependencies2.phpt
  18. +22 −0 PHPUnit/Tests/TextUI/exclude-group-isolation.phpt
  19. +98 −0 PHPUnit/Tests/TextUI/failure-isolation.phpt
  20. +113 −0 PHPUnit/Tests/TextUI/failure-verbose-isolation.phpt
  21. +18 −18 PHPUnit/Tests/TextUI/failure-verbose.phpt
  22. +18 −18 PHPUnit/Tests/TextUI/failure.phpt
  23. +22 −0 PHPUnit/Tests/TextUI/filter-class-isolation.phpt
  24. +22 −0 PHPUnit/Tests/TextUI/filter-method-isolation.phpt
  25. +22 −0 PHPUnit/Tests/TextUI/group-isolation.phpt
  26. +81 −0 PHPUnit/Tests/TextUI/story-isolation.phpt
  27. +22 −0 PHPUnit/Tests/TextUI/verbose-isolation.phpt
  28. +24 −2 package.xml
View
56 PHPUnit/Tests/TextUI/coverage-clover-class-extended-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoverageClassExtendedTest ../_files/CoverageClassExtendedTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoverageClassExtendedTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoverageClassExtendedTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="5" statements="5" coveredstatements="5" elements="8" coveredelements="10"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="7" statements="7" coveredstatements="7" elements="10" coveredelements="14"/>
+ </class>
+ <line num="4" type="method" count="1"/>
+ <line num="6" type="stmt" count="1"/>
+ <line num="8" type="method" count="1"/>
+ <line num="10" type="stmt" count="1"/>
+ <line num="11" type="stmt" count="1"/>
+ <line num="13" type="method" count="1"/>
+ <line num="15" type="stmt" count="1"/>
+ <line num="16" type="stmt" count="1"/>
+ <line num="21" type="method" count="1"/>
+ <line num="23" type="stmt" count="1"/>
+ <line num="25" type="method" count="1"/>
+ <line num="27" type="stmt" count="1"/>
+ <line num="28" type="stmt" count="1"/>
+ <line num="29" type="stmt" count="1"/>
+ <line num="31" type="method" count="1"/>
+ <line num="33" type="stmt" count="1"/>
+ <line num="34" type="stmt" count="1"/>
+ <line num="35" type="stmt" count="1"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="12" statements="12" coveredstatements="12" elements="18" coveredelements="24"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="12" statements="12" coveredstatements="12" elements="18" coveredelements="24"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-class-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoverageClassTest ../_files/CoverageClassTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoverageClassTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoverageClassTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="7" statements="7" coveredstatements="7" elements="10" coveredelements="14"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="1"/>
+ <line num="23" type="stmt" count="1"/>
+ <line num="25" type="method" count="1"/>
+ <line num="27" type="stmt" count="1"/>
+ <line num="28" type="stmt" count="1"/>
+ <line num="29" type="stmt" count="1"/>
+ <line num="31" type="method" count="1"/>
+ <line num="33" type="stmt" count="1"/>
+ <line num="34" type="stmt" count="1"/>
+ <line num="35" type="stmt" count="1"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="7" statements="12" coveredstatements="7" elements="18" coveredelements="14"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="7" statements="12" coveredstatements="7" elements="18" coveredelements="14"/>
+ </project>
+</coverage>
View
52 PHPUnit/Tests/TextUI/coverage-clover-isolation.phpt
@@ -0,0 +1,52 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'BankAccountTest';
+$_SERVER['argv'][6] = '../Samples/BankAccount/BankAccountTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+...
+
+Time: %i seconds
+
+OK (3 tests, 3 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="BankAccountTest" timestamp="%i">
+ <file name="%s/BankAccount.php">
+ <class name="BankAccountException" namespace="global" fullPackage="PHPUnit" category="Testing" package="PHPUnit">
+ <metrics methods="0" coveredmethods="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
+ </class>
+ <class name="BankAccount" namespace="global" fullPackage="PHPUnit" category="Testing" package="PHPUnit">
+ <metrics methods="4" coveredmethods="3" statements="10" coveredstatements="3" elements="14" coveredelements="6"/>
+ </class>
+ <line num="75" type="method" count="1"/>
+ <line num="77" type="stmt" count="1"/>
+ <line num="86" type="method" count="0"/>
+ <line num="88" type="stmt" count="0"/>
+ <line num="89" type="stmt" count="0"/>
+ <line num="90" type="stmt" count="0"/>
+ <line num="91" type="stmt" count="0"/>
+ <line num="93" type="stmt" count="0"/>
+ <line num="101" type="method" count="1"/>
+ <line num="103" type="stmt" count="1"/>
+ <line num="105" type="stmt" count="0"/>
+ <line num="114" type="method" count="1"/>
+ <line num="116" type="stmt" count="1"/>
+ <line num="118" type="stmt" count="0"/>
+ <metrics loc="121" ncloc="37" classes="2" methods="4" coveredmethods="3" statements="10" coveredstatements="3" elements="14" coveredelements="6"/>
+ </file>
+ <metrics files="1" loc="121" ncloc="37" classes="2" methods="4" coveredmethods="3" statements="10" coveredstatements="3" elements="14" coveredelements="6"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-method-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoverageMethodTest ../_files/CoverageMethodTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoverageMethodTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoverageMethodTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="3" statements="7" coveredstatements="3" elements="10" coveredelements="6"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="0"/>
+ <line num="23" type="stmt" count="0"/>
+ <line num="25" type="method" count="0"/>
+ <line num="27" type="stmt" count="0"/>
+ <line num="28" type="stmt" count="0"/>
+ <line num="29" type="stmt" count="0"/>
+ <line num="31" type="method" count="1"/>
+ <line num="33" type="stmt" count="1"/>
+ <line num="34" type="stmt" count="1"/>
+ <line num="35" type="stmt" count="1"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="3" statements="12" coveredstatements="3" elements="18" coveredelements="6"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="3" statements="12" coveredstatements="3" elements="18" coveredelements="6"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-not-private-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoverageNotPrivateTest ../_files/CoverageNotPrivateTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoverageNotPrivateTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoverageNotPrivateTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="6" statements="7" coveredstatements="6" elements="10" coveredelements="12"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="0"/>
+ <line num="23" type="stmt" count="0"/>
+ <line num="25" type="method" count="1"/>
+ <line num="27" type="stmt" count="1"/>
+ <line num="28" type="stmt" count="1"/>
+ <line num="29" type="stmt" count="1"/>
+ <line num="31" type="method" count="1"/>
+ <line num="33" type="stmt" count="1"/>
+ <line num="34" type="stmt" count="1"/>
+ <line num="35" type="stmt" count="1"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="6" statements="12" coveredstatements="6" elements="18" coveredelements="12"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="6" statements="12" coveredstatements="6" elements="18" coveredelements="12"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-not-protected-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoverageNotProtectedTest ../_files/CoverageNotProtectedTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoverageNotProtectedTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoverageNotProtectedTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="4" statements="7" coveredstatements="4" elements="10" coveredelements="8"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="1"/>
+ <line num="23" type="stmt" count="1"/>
+ <line num="25" type="method" count="0"/>
+ <line num="27" type="stmt" count="0"/>
+ <line num="28" type="stmt" count="0"/>
+ <line num="29" type="stmt" count="0"/>
+ <line num="31" type="method" count="1"/>
+ <line num="33" type="stmt" count="1"/>
+ <line num="34" type="stmt" count="1"/>
+ <line num="35" type="stmt" count="1"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="4" statements="12" coveredstatements="4" elements="18" coveredelements="8"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="4" statements="12" coveredstatements="4" elements="18" coveredelements="8"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-not-public-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoverageNotPublicTest ../_files/CoverageNotPublicTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoverageNotPublicTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoverageNotPublicTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="4" statements="7" coveredstatements="4" elements="10" coveredelements="8"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="1"/>
+ <line num="23" type="stmt" count="1"/>
+ <line num="25" type="method" count="1"/>
+ <line num="27" type="stmt" count="1"/>
+ <line num="28" type="stmt" count="1"/>
+ <line num="29" type="stmt" count="1"/>
+ <line num="31" type="method" count="0"/>
+ <line num="33" type="stmt" count="0"/>
+ <line num="34" type="stmt" count="0"/>
+ <line num="35" type="stmt" count="0"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="4" statements="12" coveredstatements="4" elements="18" coveredelements="8"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="4" statements="12" coveredstatements="4" elements="18" coveredelements="8"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-private-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoveragePrivateTest ../_files/CoveragePrivateTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoveragePrivateTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoveragePrivateTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="1" statements="7" coveredstatements="1" elements="10" coveredelements="2"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="1"/>
+ <line num="23" type="stmt" count="1"/>
+ <line num="25" type="method" count="0"/>
+ <line num="27" type="stmt" count="0"/>
+ <line num="28" type="stmt" count="0"/>
+ <line num="29" type="stmt" count="0"/>
+ <line num="31" type="method" count="0"/>
+ <line num="33" type="stmt" count="0"/>
+ <line num="34" type="stmt" count="0"/>
+ <line num="35" type="stmt" count="0"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="1" statements="12" coveredstatements="1" elements="18" coveredelements="2"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="1" statements="12" coveredstatements="1" elements="18" coveredelements="2"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-protected-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoverageProtectedTest ../_files/CoverageProtectedTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoverageProtectedTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoverageProtectedTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="3" statements="7" coveredstatements="3" elements="10" coveredelements="6"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="0"/>
+ <line num="23" type="stmt" count="0"/>
+ <line num="25" type="method" count="1"/>
+ <line num="27" type="stmt" count="1"/>
+ <line num="28" type="stmt" count="1"/>
+ <line num="29" type="stmt" count="1"/>
+ <line num="31" type="method" count="0"/>
+ <line num="33" type="stmt" count="0"/>
+ <line num="34" type="stmt" count="0"/>
+ <line num="35" type="stmt" count="0"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="3" statements="12" coveredstatements="3" elements="18" coveredelements="6"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="3" statements="12" coveredstatements="3" elements="18" coveredelements="6"/>
+ </project>
+</coverage>
View
56 PHPUnit/Tests/TextUI/coverage-clover-public-isolation.phpt
@@ -0,0 +1,56 @@
+--TEST--
+phpunit --process-isolation --coverage-clover php://stdout CoveragePublicTest ../_files/CoveragePublicTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-clover';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'CoveragePublicTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/CoveragePublicTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+.
+
+Time: %i seconds
+
+OK (1 test, 0 assertions)
+
+Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?>
+<coverage generated="%i" phpunit="%s">
+ <project name="CoverageTest" timestamp="%i">
+ <file name="%s/CoveredClass.php">
+ <class name="CoveredParentClass" namespace="global">
+ <metrics methods="3" coveredmethods="0" statements="5" coveredstatements="0" elements="8" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="3" statements="7" coveredstatements="3" elements="10" coveredelements="6"/>
+ </class>
+ <line num="4" type="method" count="0"/>
+ <line num="6" type="stmt" count="0"/>
+ <line num="8" type="method" count="0"/>
+ <line num="10" type="stmt" count="0"/>
+ <line num="11" type="stmt" count="0"/>
+ <line num="13" type="method" count="0"/>
+ <line num="15" type="stmt" count="0"/>
+ <line num="16" type="stmt" count="0"/>
+ <line num="21" type="method" count="0"/>
+ <line num="23" type="stmt" count="0"/>
+ <line num="25" type="method" count="0"/>
+ <line num="27" type="stmt" count="0"/>
+ <line num="28" type="stmt" count="0"/>
+ <line num="29" type="stmt" count="0"/>
+ <line num="31" type="method" count="1"/>
+ <line num="33" type="stmt" count="1"/>
+ <line num="34" type="stmt" count="1"/>
+ <line num="35" type="stmt" count="1"/>
+ <metrics loc="37" ncloc="37" classes="2" methods="6" coveredmethods="3" statements="12" coveredstatements="3" elements="18" coveredelements="6"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="3" statements="12" coveredstatements="3" elements="18" coveredelements="6"/>
+ </project>
+</coverage>
View
844 PHPUnit/Tests/TextUI/coverage-source-isolation.phpt
@@ -0,0 +1,844 @@
+--TEST--
+phpunit --process-isolation --coverage-source /tmp BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
+--FILE--
+<?php
+$tempPath = dirname(__FILE__);
+
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--coverage-source';
+$_SERVER['argv'][4] = $tempPath;
+$_SERVER['argv'][5] = 'BankAccountTest';
+$_SERVER['argv'][6] = '../Samples/BankAccount/BankAccountTest.php';
+
+define('PHPUnit_MAIN_METHOD', '');
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+
+PHPUnit_TextUI_Command::main(FALSE);
+
+print file_get_contents($tempPath . DIRECTORY_SEPARATOR . 'BankAccount.php.xml');
+print file_get_contents($tempPath . DIRECTORY_SEPARATOR . 'BankAccountTest.php.xml');
+?>
+--CLEAN--
+<?php
+$tempPath = dirname(__FILE__);
+unlink($tempPath . DIRECTORY_SEPARATOR . 'BankAccount.php.xml');
+unlink($tempPath . DIRECTORY_SEPARATOR . 'BankAccountTest.php.xml');
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+...
+
+Time: 0 seconds
+
+OK (3 tests, 3 assertions)
+
+Writing code coverage data to XML files, this may take a moment.
+<?xml version="1.0" encoding="UTF-8"?>
+<coveredFile fullPath="%s/BankAccount.php" shortenedPath="BankAccount.php" generated="%i" phpunit="%s">
+ <line lineNumber="1" executed="-3">
+ <body>&lt;?php</body>
+ </line>
+ <line lineNumber="2" executed="-3">
+ <body>/**</body>
+ </line>
+ <line lineNumber="3" executed="-3">
+ <body> * PHPUnit</body>
+ </line>
+ <line lineNumber="4" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="5" executed="-3">
+ <body> * Copyright (c) 2002-2009, Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;.</body>
+ </line>
+ <line lineNumber="6" executed="-3">
+ <body> * All rights reserved.</body>
+ </line>
+ <line lineNumber="7" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="8" executed="-3">
+ <body> * Redistribution and use in source and binary forms, with or without</body>
+ </line>
+ <line lineNumber="9" executed="-3">
+ <body> * modification, are permitted provided that the following conditions</body>
+ </line>
+ <line lineNumber="10" executed="-3">
+ <body> * are met:</body>
+ </line>
+ <line lineNumber="11" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="12" executed="-3">
+ <body> * * Redistributions of source code must retain the above copyright</body>
+ </line>
+ <line lineNumber="13" executed="-3">
+ <body> * notice, this list of conditions and the following disclaimer.</body>
+ </line>
+ <line lineNumber="14" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="15" executed="-3">
+ <body> * * Redistributions in binary form must reproduce the above copyright</body>
+ </line>
+ <line lineNumber="16" executed="-3">
+ <body> * notice, this list of conditions and the following disclaimer in</body>
+ </line>
+ <line lineNumber="17" executed="-3">
+ <body> * the documentation and/or other materials provided with the</body>
+ </line>
+ <line lineNumber="18" executed="-3">
+ <body> * distribution.</body>
+ </line>
+ <line lineNumber="19" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="20" executed="-3">
+ <body> * * Neither the name of Sebastian Bergmann nor the names of his</body>
+ </line>
+ <line lineNumber="21" executed="-3">
+ <body> * contributors may be used to endorse or promote products derived</body>
+ </line>
+ <line lineNumber="22" executed="-3">
+ <body> * from this software without specific prior written permission.</body>
+ </line>
+ <line lineNumber="23" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="24" executed="-3">
+ <body> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</body>
+ </line>
+ <line lineNumber="25" executed="-3">
+ <body> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</body>
+ </line>
+ <line lineNumber="26" executed="-3">
+ <body> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</body>
+ </line>
+ <line lineNumber="27" executed="-3">
+ <body> * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE</body>
+ </line>
+ <line lineNumber="28" executed="-3">
+ <body> * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,</body>
+ </line>
+ <line lineNumber="29" executed="-3">
+ <body> * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</body>
+ </line>
+ <line lineNumber="30" executed="-3">
+ <body> * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</body>
+ </line>
+ <line lineNumber="31" executed="-3">
+ <body> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</body>
+ </line>
+ <line lineNumber="32" executed="-3">
+ <body> * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</body>
+ </line>
+ <line lineNumber="33" executed="-3">
+ <body> * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN</body>
+ </line>
+ <line lineNumber="34" executed="-3">
+ <body> * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</body>
+ </line>
+ <line lineNumber="35" executed="-3">
+ <body> * POSSIBILITY OF SUCH DAMAGE.</body>
+ </line>
+ <line lineNumber="36" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="37" executed="-3">
+ <body> * @category Testing</body>
+ </line>
+ <line lineNumber="38" executed="-3">
+ <body> * @package PHPUnit</body>
+ </line>
+ <line lineNumber="39" executed="-3">
+ <body> * @author Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="40" executed="-3">
+ <body> * @copyright 2002-2009 Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="41" executed="-3">
+ <body> * @license http://www.opensource.org/licenses/bsd-license.php BSD License</body>
+ </line>
+ <line lineNumber="42" executed="-3">
+ <body> * @version SVN: $%s$</body>
+ </line>
+ <line lineNumber="43" executed="-3">
+ <body> * @link http://www.phpunit.de/</body>
+ </line>
+ <line lineNumber="44" executed="-3">
+ <body> * @since File available since Release 2.3.0</body>
+ </line>
+ <line lineNumber="45" executed="-3">
+ <body> */</body>
+ </line>
+ <line lineNumber="46" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="47" executed="-3">
+ <body>class BankAccountException extends RuntimeException {}</body>
+ </line>
+ <line lineNumber="48" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="49" executed="-3">
+ <body>/**</body>
+ </line>
+ <line lineNumber="50" executed="-3">
+ <body> * A bank account.</body>
+ </line>
+ <line lineNumber="51" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="52" executed="-3">
+ <body> * @category Testing</body>
+ </line>
+ <line lineNumber="53" executed="-3">
+ <body> * @package PHPUnit</body>
+ </line>
+ <line lineNumber="54" executed="-3">
+ <body> * @author Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="55" executed="-3">
+ <body> * @copyright 2002-2009 Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="56" executed="-3">
+ <body> * @license http://www.opensource.org/licenses/bsd-license.php BSD License</body>
+ </line>
+ <line lineNumber="57" executed="-3">
+ <body> * @version Release: %s</body>
+ </line>
+ <line lineNumber="58" executed="-3">
+ <body> * @link http://www.phpunit.de/</body>
+ </line>
+ <line lineNumber="59" executed="-3">
+ <body> * @since Class available since Release 2.3.0</body>
+ </line>
+ <line lineNumber="60" executed="-3">
+ <body> */</body>
+ </line>
+ <line lineNumber="61" executed="-3">
+ <body>class BankAccount</body>
+ </line>
+ <line lineNumber="62" executed="-3">
+ <body>{</body>
+ </line>
+ <line lineNumber="63" executed="-3">
+ <body> /**</body>
+ </line>
+ <line lineNumber="64" executed="-3">
+ <body> * The bank account's balance.</body>
+ </line>
+ <line lineNumber="65" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="66" executed="-3">
+ <body> * @var float</body>
+ </line>
+ <line lineNumber="67" executed="-3">
+ <body> */</body>
+ </line>
+ <line lineNumber="68" executed="-3">
+ <body> protected $balance = 0;</body>
+ </line>
+ <line lineNumber="69" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="70" executed="-3">
+ <body> /**</body>
+ </line>
+ <line lineNumber="71" executed="-3">
+ <body> * Returns the bank account's balance.</body>
+ </line>
+ <line lineNumber="72" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="73" executed="-3">
+ <body> * @return float</body>
+ </line>
+ <line lineNumber="74" executed="-3">
+ <body> */</body>
+ </line>
+ <line lineNumber="75" executed="-3">
+ <body> public function getBalance()</body>
+ </line>
+ <line lineNumber="76" executed="-3">
+ <body> {</body>
+ </line>
+ <line lineNumber="77" executed="1">
+ <body> return $this-&gt;balance;</body>
+ <tests>
+ <test name="testBalanceIsInitiallyZero" status="0" class="BankAccountTest" fullPath="%s/BankAccountTest.php" shortenedPath="/BankAccountTest.php" line="76"/>
+ </tests>
+ </line>
+ <line lineNumber="78" executed="-2">
+ <body> }</body>
+ </line>
+ <line lineNumber="79" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="80" executed="-3">
+ <body> /**</body>
+ </line>
+ <line lineNumber="81" executed="-3">
+ <body> * Sets the bank account's balance.</body>
+ </line>
+ <line lineNumber="82" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="83" executed="-3">
+ <body> * @param float $balance</body>
+ </line>
+ <line lineNumber="84" executed="-3">
+ <body> * @throws BankAccountException</body>
+ </line>
+ <line lineNumber="85" executed="-3">
+ <body> */</body>
+ </line>
+ <line lineNumber="86" executed="-3">
+ <body> protected function setBalance($balance)</body>
+ </line>
+ <line lineNumber="87" executed="-3">
+ <body> {</body>
+ </line>
+ <line lineNumber="88" executed="-1">
+ <body> if ($balance &gt;= 0) {</body>
+ </line>
+ <line lineNumber="89" executed="-1">
+ <body> $this-&gt;balance = $balance;</body>
+ </line>
+ <line lineNumber="90" executed="-1">
+ <body> } else {</body>
+ </line>
+ <line lineNumber="91" executed="-1">
+ <body> throw new BankAccountException;</body>
+ </line>
+ <line lineNumber="92" executed="-3">
+ <body> }</body>
+ </line>
+ <line lineNumber="93" executed="-1">
+ <body> }</body>
+ </line>
+ <line lineNumber="94" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="95" executed="-3">
+ <body> /**</body>
+ </line>
+ <line lineNumber="96" executed="-3">
+ <body> * Deposits an amount of money to the bank account.</body>
+ </line>
+ <line lineNumber="97" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="98" executed="-3">
+ <body> * @param float $balance</body>
+ </line>
+ <line lineNumber="99" executed="-3">
+ <body> * @throws BankAccountException</body>
+ </line>
+ <line lineNumber="100" executed="-3">
+ <body> */</body>
+ </line>
+ <line lineNumber="101" executed="-3">
+ <body> public function depositMoney($balance)</body>
+ </line>
+ <line lineNumber="102" executed="-3">
+ <body> {</body>
+ </line>
+ <line lineNumber="103" executed="1">
+ <body> $this-&gt;setBalance($this-&gt;getBalance() + $balance);</body>
+ <tests>
+ <test name="testBalanceCannotBecomeNegative2" status="0" class="BankAccountTest" fullPath="%s/BankAccountTest.php" shortenedPath="/BankAccountTest.php" line="106"/>
+ </tests>
+ </line>
+ <line lineNumber="104" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="105" executed="-1">
+ <body> return $this-&gt;getBalance();</body>
+ </line>
+ <line lineNumber="106" executed="-2">
+ <body> }</body>
+ </line>
+ <line lineNumber="107" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="108" executed="-3">
+ <body> /**</body>
+ </line>
+ <line lineNumber="109" executed="-3">
+ <body> * Withdraws an amount of money from the bank account.</body>
+ </line>
+ <line lineNumber="110" executed="-3">
+ <body> *</body>
+ </line>
+ <line lineNumber="111" executed="-3">
+ <body> * @param float $balance</body>
+ </line>
+ <line lineNumber="112" executed="-3">
+ <body> * @throws BankAccountException</body>
+ </line>
+ <line lineNumber="113" executed="-3">
+ <body> */</body>
+ </line>
+ <line lineNumber="114" executed="-3">
+ <body> public function withdrawMoney($balance)</body>
+ </line>
+ <line lineNumber="115" executed="-3">
+ <body> {</body>
+ </line>
+ <line lineNumber="116" executed="1">
+ <body> $this-&gt;setBalance($this-&gt;getBalance() - $balance);</body>
+ <tests>
+ <test name="testBalanceCannotBecomeNegative" status="0" class="BankAccountTest" fullPath="%s/BankAccountTest.php" shortenedPath="/BankAccountTest.php" line="86"/>
+ </tests>
+ </line>
+ <line lineNumber="117" executed="-3">
+ <body></body>
+ </line>
+ <line lineNumber="118" executed="-1">
+ <body> return $this-&gt;getBalance();</body>
+ </line>
+ <line lineNumber="119" executed="-2">
+ <body> }</body>
+ </line>
+ <line lineNumber="120" executed="-3">
+ <body>}</body>
+ </line>
+ <line lineNumber="121" executed="-3">
+ <body>?&gt;</body>
+ </line>
+</coveredFile>
+<?xml version="1.0" encoding="UTF-8"?>
+<testFile fullPath="%s/BankAccountTest.php" shortenedPath="BankAccountTest.php" generated="%i" phpunit="%s">
+ <line lineNumber="1">
+ <body>&lt;?php</body>
+ </line>
+ <line lineNumber="2">
+ <body>/**</body>
+ </line>
+ <line lineNumber="3">
+ <body> * PHPUnit</body>
+ </line>
+ <line lineNumber="4">
+ <body> *</body>
+ </line>
+ <line lineNumber="5">
+ <body> * Copyright (c) 2002-2009, Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;.</body>
+ </line>
+ <line lineNumber="6">
+ <body> * All rights reserved.</body>
+ </line>
+ <line lineNumber="7">
+ <body> *</body>
+ </line>
+ <line lineNumber="8">
+ <body> * Redistribution and use in source and binary forms, with or without</body>
+ </line>
+ <line lineNumber="9">
+ <body> * modification, are permitted provided that the following conditions</body>
+ </line>
+ <line lineNumber="10">
+ <body> * are met:</body>
+ </line>
+ <line lineNumber="11">
+ <body> *</body>
+ </line>
+ <line lineNumber="12">
+ <body> * * Redistributions of source code must retain the above copyright</body>
+ </line>
+ <line lineNumber="13">
+ <body> * notice, this list of conditions and the following disclaimer.</body>
+ </line>
+ <line lineNumber="14">
+ <body> *</body>
+ </line>
+ <line lineNumber="15">
+ <body> * * Redistributions in binary form must reproduce the above copyright</body>
+ </line>
+ <line lineNumber="16">
+ <body> * notice, this list of conditions and the following disclaimer in</body>
+ </line>
+ <line lineNumber="17">
+ <body> * the documentation and/or other materials provided with the</body>
+ </line>
+ <line lineNumber="18">
+ <body> * distribution.</body>
+ </line>
+ <line lineNumber="19">
+ <body> *</body>
+ </line>
+ <line lineNumber="20">
+ <body> * * Neither the name of Sebastian Bergmann nor the names of his</body>
+ </line>
+ <line lineNumber="21">
+ <body> * contributors may be used to endorse or promote products derived</body>
+ </line>
+ <line lineNumber="22">
+ <body> * from this software without specific prior written permission.</body>
+ </line>
+ <line lineNumber="23">
+ <body> *</body>
+ </line>
+ <line lineNumber="24">
+ <body> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</body>
+ </line>
+ <line lineNumber="25">
+ <body> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</body>
+ </line>
+ <line lineNumber="26">
+ <body> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</body>
+ </line>
+ <line lineNumber="27">
+ <body> * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE</body>
+ </line>
+ <line lineNumber="28">
+ <body> * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,</body>
+ </line>
+ <line lineNumber="29">
+ <body> * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</body>
+ </line>
+ <line lineNumber="30">
+ <body> * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</body>
+ </line>
+ <line lineNumber="31">
+ <body> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</body>
+ </line>
+ <line lineNumber="32">
+ <body> * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</body>
+ </line>
+ <line lineNumber="33">
+ <body> * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN</body>
+ </line>
+ <line lineNumber="34">
+ <body> * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</body>
+ </line>
+ <line lineNumber="35">
+ <body> * POSSIBILITY OF SUCH DAMAGE.</body>
+ </line>
+ <line lineNumber="36">
+ <body> *</body>
+ </line>
+ <line lineNumber="37">
+ <body> * @category Testing</body>
+ </line>
+ <line lineNumber="38">
+ <body> * @package PHPUnit</body>
+ </line>
+ <line lineNumber="39">
+ <body> * @author Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="40">
+ <body> * @copyright 2002-2009 Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="41">
+ <body> * @license http://www.opensource.org/licenses/bsd-license.php BSD License</body>
+ </line>
+ <line lineNumber="42">
+ <body> * @version SVN: $%s$</body>
+ </line>
+ <line lineNumber="43">
+ <body> * @link http://www.phpunit.de/</body>
+ </line>
+ <line lineNumber="44">
+ <body> * @since File available since Release 2.3.0</body>
+ </line>
+ <line lineNumber="45">
+ <body> */</body>
+ </line>
+ <line lineNumber="46">
+ <body></body>
+ </line>
+ <line lineNumber="47">
+ <body>require_once 'PHPUnit/Framework/TestCase.php';</body>
+ </line>
+ <line lineNumber="48">
+ <body>require_once 'BankAccount.php';</body>
+ </line>
+ <line lineNumber="49">
+ <body></body>
+ </line>
+ <line lineNumber="50">
+ <body>/**</body>
+ </line>
+ <line lineNumber="51">
+ <body> * Tests for the BankAccount class.</body>
+ </line>
+ <line lineNumber="52">
+ <body> *</body>
+ </line>
+ <line lineNumber="53">
+ <body> * @category Testing</body>
+ </line>
+ <line lineNumber="54">
+ <body> * @package PHPUnit</body>
+ </line>
+ <line lineNumber="55">
+ <body> * @author Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="56">
+ <body> * @copyright 2002-2009 Sebastian Bergmann &lt;sb@sebastian-bergmann.de&gt;</body>
+ </line>
+ <line lineNumber="57">
+ <body> * @license http://www.opensource.org/licenses/bsd-license.php BSD License</body>
+ </line>
+ <line lineNumber="58">
+ <body> * @version Release: %s</body>
+ </line>
+ <line lineNumber="59">
+ <body> * @link http://www.phpunit.de/</body>
+ </line>
+ <line lineNumber="60">
+ <body> * @since Class available since Release 2.3.0</body>
+ </line>
+ <line lineNumber="61">
+ <body> */</body>
+ </line>
+ <line lineNumber="62">
+ <body>class BankAccountTest extends PHPUnit_Framework_TestCase</body>
+ </line>
+ <line lineNumber="63">
+ <body>{</body>
+ </line>
+ <line lineNumber="64">
+ <body> protected $ba;</body>
+ </line>
+ <line lineNumber="65">
+ <body></body>
+ </line>
+ <line lineNumber="66">
+ <body> protected function setUp()</body>
+ </line>
+ <line lineNumber="67">
+ <body> {</body>
+ </line>
+ <line lineNumber="68">
+ <body> $this-&gt;ba = new BankAccount;</body>
+ </line>
+ <line lineNumber="69">
+ <body> }</body>
+ </line>
+ <line lineNumber="70">
+ <body></body>
+ </line>
+ <line lineNumber="71">
+ <body> /**</body>
+ </line>
+ <line lineNumber="72">
+ <body> * @covers BankAccount::getBalance</body>
+ </line>
+ <line lineNumber="73">
+ <body> * @group balanceIsInitiallyZero</body>
+ </line>
+ <line lineNumber="74">
+ <body> * @group specification</body>
+ </line>
+ <line lineNumber="75">
+ <body> */</body>
+ </line>
+ <line lineNumber="76">
+ <body> public function testBalanceIsInitiallyZero()</body>
+ <coveredFiles>
+ <coveredFile fullPath="%s/BankAccountTest.php" shortenedPath="BankAccount.php">
+ <coveredLine>77</coveredLine>
+ </coveredFile>
+ </coveredFiles>
+ </line>
+ <line lineNumber="77">
+ <body> {</body>
+ </line>
+ <line lineNumber="78">
+ <body> $this-&gt;assertEquals(0, $this-&gt;ba-&gt;getBalance());</body>
+ </line>
+ <line lineNumber="79">
+ <body> }</body>
+ </line>
+ <line lineNumber="80">
+ <body></body>
+ </line>
+ <line lineNumber="81">
+ <body> /**</body>
+ </line>
+ <line lineNumber="82">
+ <body> * @covers BankAccount::withdrawMoney</body>
+ </line>
+ <line lineNumber="83">
+ <body> * @group balanceCannotBecomeNegative</body>
+ </line>
+ <line lineNumber="84">
+ <body> * @group specification</body>
+ </line>
+ <line lineNumber="85">
+ <body> */</body>
+ </line>
+ <line lineNumber="86">
+ <body> public function testBalanceCannotBecomeNegative()</body>
+ <coveredFiles>
+ <coveredFile fullPath="%s/BankAccountTest.php" shortenedPath="BankAccount.php">
+ <coveredLine>116</coveredLine>
+ </coveredFile>
+ </coveredFiles>
+ </line>
+ <line lineNumber="87">
+ <body> {</body>
+ </line>
+ <line lineNumber="88">
+ <body> try {</body>
+ </line>
+ <line lineNumber="89">
+ <body> $this-&gt;ba-&gt;withdrawMoney(1);</body>
+ </line>
+ <line lineNumber="90">
+ <body> }</body>
+ </line>
+ <line lineNumber="91">
+ <body></body>
+ </line>
+ <line lineNumber="92">
+ <body> catch (BankAccountException $e) {</body>
+ </line>
+ <line lineNumber="93">
+ <body> $this-&gt;assertEquals(0, $this-&gt;ba-&gt;getBalance());</body>
+ </line>
+ <line lineNumber="94">
+ <body></body>
+ </line>
+ <line lineNumber="95">
+ <body> return;</body>
+ </line>
+ <line lineNumber="96">
+ <body> }</body>
+ </line>
+ <line lineNumber="97">
+ <body></body>
+ </line>
+ <line lineNumber="98">
+ <body> $this-&gt;fail();</body>
+ </line>
+ <line lineNumber="99">
+ <body> }</body>
+ </line>
+ <line lineNumber="100">
+ <body></body>
+ </line>
+ <line lineNumber="101">
+ <body> /**</body>
+ </line>
+ <line lineNumber="102">
+ <body> * @covers BankAccount::depositMoney</body>
+ </line>
+ <line lineNumber="103">
+ <body> * @group balanceCannotBecomeNegative</body>
+ </line>
+ <line lineNumber="104">
+ <body> * @group specification</body>
+ </line>
+ <line lineNumber="105">
+ <body> */</body>
+ </line>
+ <line lineNumber="106">
+ <body> public function testBalanceCannotBecomeNegative2()</body>
+ <coveredFiles>
+ <coveredFile fullPath="%s/BankAccountTest.php" shortenedPath="BankAccount.php">
+ <coveredLine>103</coveredLine>
+ </coveredFile>
+ </coveredFiles>
+ </line>
+ <line lineNumber="107">
+ <body> {</body>
+ </line>
+ <line lineNumber="108">
+ <body> try {</body>
+ </line>
+ <line lineNumber="109">
+ <body> $this-&gt;ba-&gt;depositMoney(-1);</body>
+ </line>
+ <line lineNumber="110">
+ <body> }</body>
+ </line>
+ <line lineNumber="111">
+ <body></body>
+ </line>
+ <line lineNumber="112">
+ <body> catch (BankAccountException $e) {</body>
+ </line>
+ <line lineNumber="113">
+ <body> $this-&gt;assertEquals(0, $this-&gt;ba-&gt;getBalance());</body>
+ </line>
+ <line lineNumber="114">
+ <body></body>
+ </line>
+ <line lineNumber="115">
+ <body> return;</body>
+ </line>
+ <line lineNumber="116">
+ <body> }</body>
+ </line>
+ <line lineNumber="117">
+ <body></body>
+ </line>
+ <line lineNumber="118">
+ <body> $this-&gt;fail();</body>
+ </line>
+ <line lineNumber="119">
+ <body> }</body>
+ </line>
+ <line lineNumber="120">
+ <body></body>
+ </line>
+ <line lineNumber="121">
+ <body> /**</body>
+ </line>
+ <line lineNumber="122">
+ <body> * @covers BankAccount::getBalance</body>
+ </line>
+ <line lineNumber="123">
+ <body> * @covers BankAccount::depositMoney</body>
+ </line>
+ <line lineNumber="124">
+ <body> * @covers BankAccount::withdrawMoney</body>
+ </line>
+ <line lineNumber="125">
+ <body> * @group balanceCannotBecomeNegative</body>
+ </line>
+ <line lineNumber="126">
+ <body> */</body>
+ </line>
+ <line lineNumber="127">
+ <body>/*</body>
+ </line>
+ <line lineNumber="128">
+ <body> public function testDepositWithdrawMoney()</body>
+ </line>
+ <line lineNumber="129">
+ <body> {</body>
+ </line>
+ <line lineNumber="130">
+ <body> $this-&gt;assertEquals(0, $this-&gt;ba-&gt;getBalance());</body>
+ </line>
+ <line lineNumber="131">
+ <body> $this-&gt;ba-&gt;depositMoney(1);</body>
+ </line>
+ <line lineNumber="132">
+ <body> $this-&gt;assertEquals(1, $this-&gt;ba-&gt;getBalance());</body>
+ </line>
+ <line lineNumber="133">
+ <body> $this-&gt;ba-&gt;withdrawMoney(1);</body>
+ </line>
+ <line lineNumber="134">
+ <body> $this-&gt;assertEquals(0, $this-&gt;ba-&gt;getBalance());</body>
+ </line>
+ <line lineNumber="135">
+ <body> }</body>
+ </line>
+ <line lineNumber="136">
+ <body>*/</body>
+ </line>
+ <line lineNumber="137">
+ <body>}</body>
+ </line>
+ <line lineNumber="138">
+ <body>?&gt;</body>
+ </line>
+</testFile>
View
49 PHPUnit/Tests/TextUI/dataset-log-xml-isolation.phpt
@@ -0,0 +1,49 @@
+--TEST--
+phpunit --process-isolation --log-xml php://stdout DataSetTest ../_files/DataSetTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--log-xml';
+$_SERVER['argv'][4] = 'php://stdout';
+$_SERVER['argv'][5] = 'DataSetTest';
+$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/DataSetTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+..F.<?xml version="1.0" encoding="UTF-8"?>
+<testsuites>
+ <testsuite name="DataSetTest" file="%s/DataSetTest.php" tests="4" assertions="4" failures="1" errors="0" time="%f">
+ <testsuite name="DataSetTest::testAdd" tests="4" assertions="4" failures="1" errors="0" time="%f">
+ <testcase name="testAdd with data set #0" assertions="1" time="%f"/>
+ <testcase name="testAdd with data set #1" assertions="1" time="%f"/>
+ <testcase name="testAdd with data set #2" assertions="1" time="%f">
+ <failure type="PHPUnit_Framework_ExpectationFailedException">testAdd(DataSetTest) with data set #2 (1, 1, 3)
+Failed asserting that &lt;integer:2&gt; matches expected &lt;integer:3&gt;.
+
+%s:%i
+%s:%i
+</failure>
+ </testcase>
+ <testcase name="testAdd with data set #3" assertions="1" time="%f"/>
+ </testsuite>
+ </testsuite>
+</testsuites>
+
+
+Time: %i seconds
+
+There was 1 failure:
+
+1) testAdd(DataSetTest) with data set #2 (1, 1, 3)
+Failed asserting that <integer:2> matches expected <integer:3>.
+%s:%i
+%s:%i
+
+FAILURES!
+Tests: 4, Assertions: 4, Failures: 1.
+
View
0 PHPUnit/Tests/TextUI/isolated.phpt → PHPUnit/Tests/TextUI/default-isolation.phpt
File renamed without changes.
View
42 PHPUnit/Tests/TextUI/dependencies-isolation.phpt
@@ -0,0 +1,42 @@
+--TEST--
+phpunit --process-isolation --verbose DependencyTestSuite ../_files/DependencyTestSuite.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--verbose';
+$_SERVER['argv'][4] = 'DependencyTestSuite';
+$_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/DependencyTestSuite.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+Test Dependencies
+ DependencySuccessTest
+ ...
+
+ DependencyFailureTest
+ FSS
+
+Time: %d seconds
+
+There was 1 failure:
+
+1) testOne(DependencyFailureTest)
+%s:%i
+
+There were 2 skipped tests:
+
+1) testTwo(DependencyFailureTest)
+This test depends on "DependencyFailureTest::testOne" to pass.
+%s:%i
+
+2) testThree(DependencyFailureTest)
+This test depends on "DependencyFailureTest::testTwo" to pass.
+%s:%i
+
+FAILURES!
+Tests: 6, Assertions: 0, Failures: 1, Skipped: 2.
View
21 PHPUnit/Tests/TextUI/dependencies-isolation2.phpt
@@ -0,0 +1,21 @@
+--TEST--
+phpunit --process-isolation StackTest ../_files/StackTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = 'StackTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/StackTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+..
+
+Time: %i seconds
+
+OK (2 tests, 5 assertions)
+
View
6 PHPUnit/Tests/TextUI/dependencies.phpt
@@ -25,17 +25,17 @@ Time: %d seconds
There was 1 failure:
1) testOne(DependencyFailureTest)
-%s/dependencies.php:%i
+%s:%i
There were 2 skipped tests:
1) testTwo(DependencyFailureTest)
This test depends on "DependencyFailureTest::testOne" to pass.
-%s/dependencies.php:%i
+%s:%i
2) testThree(DependencyFailureTest)
This test depends on "DependencyFailureTest::testTwo" to pass.
-%s/dependencies.php:%i
+%s:%i
FAILURES!
Tests: 6, Assertions: 0, Failures: 1, Skipped: 2.
View
8 PHPUnit/Tests/TextUI/dependencies2.phpt
@@ -1,11 +1,10 @@
--TEST--
-phpunit --verbose DependencyTestSuite ../_files/DependencyTestSuite.php
+phpunit StackTest ../_files/StackTest.php
--FILE--
<?php
$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--verbose';
-$_SERVER['argv'][3] = 'StackTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/StackTest.php';
+$_SERVER['argv'][2] = 'StackTest';
+$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/StackTest.php';
require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
PHPUnit_TextUI_Command::main();
@@ -13,7 +12,6 @@ PHPUnit_TextUI_Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann.
-StackTest
..
Time: %i seconds
View
22 PHPUnit/Tests/TextUI/exclude-group-isolation.phpt
@@ -0,0 +1,22 @@
+--TEST--
+phpunit --process-isolation --exclude-group balanceIsInitiallyZero BankAccountTest ../../Samples/BankAccount/BankAccountTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--exclude-group';
+$_SERVER['argv'][4] = 'balanceIsInitiallyZero';
+$_SERVER['argv'][5] = 'BankAccountTest';
+$_SERVER['argv'][6] = '../Samples/BankAccount/BankAccountTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+..
+
+Time: %i seconds
+
+OK (2 tests, 2 assertions)
View
98 PHPUnit/Tests/TextUI/failure-isolation.phpt
@@ -0,0 +1,98 @@
+--TEST--
+phpunit --process-isolation FailureTest ../../Samples/BankAccount/FailureTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = 'FailureTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/FailureTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+FFFFFFFFF
+
+Time: %i seconds
+
+There were 9 failures:
+
+1) testAssertArrayEqualsArray(FailureTest)
+Failed asserting that two arrays are equal.
+--- Expected
++++ Actual
+@@ -1,5 +1,5 @@
+ Array
+ (
+- [0] => 1
++ [0] => 2
+ )
+
+%s:%i
+%s:%i
+
+2) testAssertIntegerEqualsInteger(FailureTest)
+Failed asserting that <integer:2> matches expected <integer:1>.
+%s:%i
+%s:%i
+
+3) testAssertObjectEqualsObject(FailureTest)
+Failed asserting that two objects are equal.
+--- Expected
++++ Actual
+@@ -1,5 +1,5 @@
+ stdClass Object
+ (
+- [foo] => bar
++ [bar] => foo
+ )
+
+%s:%i
+%s:%i
+
+4) testAssertNullEqualsString(FailureTest)
+Failed asserting that <string:bar> matches expected <null>.
+%s:%i
+%s:%i
+
+5) testAssertStringEqualsString(FailureTest)
+Failed asserting that two strings are equal.
+expected string <foo>
+difference <xxx>
+got string <bar>
+%s:%i
+%s:%i
+
+6) testAssertTextEqualsText(FailureTest)
+Failed asserting that two strings are equal.
+--- Expected
++++ Actual
+@@ -1,3 +1,3 @@
+ foo
+-bar
++baz
+
+%s:%i
+%s:%i
+
+7) testAssertTextSameText(FailureTest)
+expected string <foo>
+difference <xxx>
+got string <bar>
+%s:%i
+%s:%i
+
+8) testAssertObjectSameObject(FailureTest)
+Failed asserting that two variables reference the same object.
+%s:%i
+%s:%i
+
+9) testAssertObjectSameNull(FailureTest)
+<null> does not match expected type "object".
+%s:%i
+%s:%i
+
+FAILURES!
+Tests: 9, Assertions: 9, Failures: 9.
View
113 PHPUnit/Tests/TextUI/failure-verbose-isolation.phpt
@@ -0,0 +1,113 @@
+--TEST--
+phpunit --process-isolation --verbose FailureTest ../../Samples/BankAccount/FailureTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = '--process-isolation';
+$_SERVER['argv'][3] = '--verbose';
+$_SERVER['argv'][4] = 'FailureTest';
+$_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/FailureTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+PHPUnit %s by Sebastian Bergmann.
+
+FailureTest
+FFFFFFFFF
+
+Time: %i seconds
+
+There were 9 failures:
+
+1) testAssertArrayEqualsArray(FailureTest)
+Failed asserting that two arrays are equal.
+--- Expected
++++ Actual
+@@ -1,5 +1,5 @@
+ Array
+ (
+- [0] => 1
++ [0] => 2
+ )
+
+%s:%i
+%s:%i
+%s:%i
+
+2) testAssertIntegerEqualsInteger(FailureTest)
+Failed asserting that <integer:2> matches expected <integer:1>.
+expected integer <1>
+difference <1>
+got integer <2>
+%s:%i
+%s:%i
+%s:%i
+
+3) testAssertObjectEqualsObject(FailureTest)
+Failed asserting that two objects are equal.
+--- Expected
++++ Actual
+@@ -1,5 +1,5 @@
+ stdClass Object
+ (
+- [foo] => bar
++ [bar] => foo
+ )
+
+%s:%i
+%s:%i
+%s:%i
+
+4) testAssertNullEqualsString(FailureTest)
+Failed asserting that <string:bar> matches expected <null>.
+
+%s:%i
+%s:%i
+%s:%i
+
+5) testAssertStringEqualsString(FailureTest)
+Failed asserting that two strings are equal.
+expected string <foo>
+difference <xxx>
+got string <bar>
+%s:%i
+%s:%i
+%s:%i
+
+6) testAssertTextEqualsText(FailureTest)
+Failed asserting that two strings are equal.
+--- Expected
++++ Actual
+@@ -1,3 +1,3 @@
+ foo
+-bar
++baz
+
+%s:%i
+%s:%i
+%s:%i
+
+7) testAssertTextSameText(FailureTest)
+expected string <foo>
+difference <xxx>
+got string <bar>
+%s:%i
+%s:%i
+%s:%i
+
+8) testAssertObjectSameObject(FailureTest)
+Failed asserting that two variables reference the same object.
+%s:%i
+%s:%i
+%s:%i
+
+9) testAssertObjectSameNull(FailureTest)
+<null> does not match expected type "object".
+%s:%i
+%s:%i
+%s:%i
+
+FAILURES!
+Tests: 9, Assertions: 9, Failures: 9.
View
36 PHPUnit/Tests/TextUI/failure-verbose.phpt
@@ -31,16 +31,16 @@ Failed asserting that two arrays are equal.
+ [0] => 2
)
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
2) testAssertIntegerEqualsInteger(FailureTest)
Failed asserting that <integer:2> matches expected <integer:1>.
expected integer <1>
difference <1>
got integer <2>
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
3) testAssertObjectEqualsObject(FailureTest)
Failed asserting that two objects are equal.
@@ -53,22 +53,22 @@ Failed asserting that two objects are equal.
+ [bar] => foo
)
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
4) testAssertNullEqualsString(FailureTest)
Failed asserting that <string:bar> matches expected <null>.
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
5) testAssertStringEqualsString(FailureTest)
Failed asserting that two strings are equal.
expected string <foo>
difference <xxx>
got string <bar>
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
6) testAssertTextEqualsText(FailureTest)
Failed asserting that two strings are equal.
@@ -79,25 +79,25 @@ Failed asserting that two strings are equal.
-bar
+baz
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
7) testAssertTextSameText(FailureTest)
expected string <foo>
difference <xxx>
got string <bar>
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
8) testAssertObjectSameObject(FailureTest)
Failed asserting that two variables reference the same object.
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
9) testAssertObjectSameNull(FailureTest)
<null> does not match expected type "object".
-%s/FailureTest.php:%i
-%s/failure-verbose.php:%i
+%s:%i
+%s:%i
FAILURES!
Tests: 9, Assertions: 9, Failures: 9.
View
36 PHPUnit/Tests/TextUI/failure.phpt
@@ -29,13 +29,13 @@ Failed asserting that two arrays are equal.
+ [0] => 2
)
-%s/FailureTest.php:%i
-%s/failure.php:%i
+%s:%i
+%s:%i
2) testAssertIntegerEqualsInteger(FailureTest)
Failed asserting that <integer:2> matches expected <integer:1>.
-%s/FailureTest.php:%i
-%s/failure.php:%i
+%s:%i
+%s:%i
3) testAssertObjectEqualsObject(FailureTest)
Failed asserting that two objects are equal.
@@ -48,21 +48,21 @@ Failed asserting that two objects are equal.
+ [bar] => foo
)
-%s/FailureTest.php:%i
-%s/failure.php:%i
+%s:%i
+%s:%i
4) testAssertNullEqualsString(FailureTest)
Failed asserting that <string:bar> matches expected <null>.
-%s/FailureTest.php:%i
-%s/failure.php:%i
+%s:%i
+%s:%i