Permalink
Browse files

- Merge [3559].

  • Loading branch information...
1 parent 196578e commit bed3a1651bc4d08ff5eeaf854ab259b5acaa7107 @sebastianbergmann committed Aug 16, 2008
@@ -0,0 +1,54 @@
+--TEST--
+phpunit --coverage-clover php://stdout CoverageClassExtendedTest ../_files/CoverageClassExtendedTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--coverage-clover';
+$_SERVER['argv'][2] = 'php://stdout';
+$_SERVER['argv'][3] = 'CoverageClassExtendedTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/CoverageClassExtendedTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+?>
+--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="3" statements="2" coveredstatements="5" elements="5" coveredelements="8"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="3" statements="4" coveredstatements="7" elements="7" coveredelements="10"/>
+ </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="6" statements="12" coveredstatements="12" elements="18" coveredelements="18"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="6" statements="12" coveredstatements="12" elements="18" coveredelements="18"/>
+ </project>
+</coverage>
+
@@ -0,0 +1,54 @@
+--TEST--
+phpunit --coverage-clover php://stdout CoverageClassTest ../_files/CoverageClassTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--coverage-clover';
+$_SERVER['argv'][2] = 'php://stdout';
+$_SERVER['argv'][3] = 'CoverageClassTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/CoverageClassTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+?>
+--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="2" coveredstatements="0" elements="5" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="3" statements="4" coveredstatements="7" elements="7" coveredelements="10"/>
+ </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="3" statements="12" coveredstatements="7" elements="18" coveredelements="10"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="3" statements="12" coveredstatements="7" elements="18" coveredelements="10"/>
+ </project>
+</coverage>
+
@@ -0,0 +1,54 @@
+--TEST--
+phpunit --coverage-clover php://stdout CoverageMethodTest ../_files/CoverageMethodTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--coverage-clover';
+$_SERVER['argv'][2] = 'php://stdout';
+$_SERVER['argv'][3] = 'CoverageMethodTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/CoverageMethodTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+?>
+--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="2" coveredstatements="0" elements="5" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="1" statements="4" coveredstatements="3" elements="7" coveredelements="4"/>
+ </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="1" statements="12" coveredstatements="3" elements="18" coveredelements="4"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="1" statements="12" coveredstatements="3" elements="18" coveredelements="4"/>
+ </project>
+</coverage>
+
@@ -0,0 +1,54 @@
+--TEST--
+phpunit --coverage-clover php://stdout CoverageNotPrivateTest ../_files/CoverageNotPrivateTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--coverage-clover';
+$_SERVER['argv'][2] = 'php://stdout';
+$_SERVER['argv'][3] = 'CoverageNotPrivateTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/CoverageNotPrivateTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+?>
+--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="2" coveredstatements="0" elements="5" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="2" statements="4" coveredstatements="6" elements="7" 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="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="2" statements="12" coveredstatements="6" elements="18" coveredelements="8"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="2" statements="12" coveredstatements="6" elements="18" coveredelements="8"/>
+ </project>
+</coverage>
+
@@ -0,0 +1,54 @@
+--TEST--
+phpunit --coverage-clover php://stdout CoverageNotProtectedTest ../_files/CoverageNotProtectedTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--coverage-clover';
+$_SERVER['argv'][2] = 'php://stdout';
+$_SERVER['argv'][3] = 'CoverageNotProtectedTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/CoverageNotProtectedTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+?>
+--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="2" coveredstatements="0" elements="5" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="2" statements="4" coveredstatements="4" elements="7" 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="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="2" statements="12" coveredstatements="4" elements="18" coveredelements="6"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="2" statements="12" coveredstatements="4" elements="18" coveredelements="6"/>
+ </project>
+</coverage>
+
@@ -0,0 +1,54 @@
+--TEST--
+phpunit --coverage-clover php://stdout CoverageNotPublicTest ../_files/CoverageNotPublicTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--coverage-clover';
+$_SERVER['argv'][2] = 'php://stdout';
+$_SERVER['argv'][3] = 'CoverageNotPublicTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/CoverageNotPublicTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+?>
+--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="2" coveredstatements="0" elements="5" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="2" statements="4" coveredstatements="4" elements="7" 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="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="2" statements="12" coveredstatements="4" elements="18" coveredelements="6"/>
+ </file>
+ <metrics files="1" loc="37" ncloc="37" classes="2" methods="6" coveredmethods="2" statements="12" coveredstatements="4" elements="18" coveredelements="6"/>
+ </project>
+</coverage>
+
@@ -0,0 +1,54 @@
+--TEST--
+phpunit --coverage-clover php://stdout CoveragePrivateTest ../_files/CoveragePrivateTest.php
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--coverage-clover';
+$_SERVER['argv'][2] = 'php://stdout';
+$_SERVER['argv'][3] = 'CoveragePrivateTest';
+$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/CoveragePrivateTest.php';
+
+require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
+?>
+--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="2" coveredstatements="0" elements="5" coveredelements="0"/>
+ </class>
+ <class name="CoveredClass" namespace="global">
+ <metrics methods="3" coveredmethods="1" statements="4" coveredstatements="1" elements="7" 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>
+
Oops, something went wrong.

0 comments on commit bed3a16

Please sign in to comment.