Permalink
Browse files

- Merge [4690].

  • Loading branch information...
sebastianbergmann committed Feb 26, 2009
1 parent dd1ca51 commit 073a305c8a39688bc84f0c64a375d0b8d9543205
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
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
Oops, something went wrong.

0 comments on commit 073a305

Please sign in to comment.