diff options
Diffstat (limited to 'vendor/phpunit/php-code-coverage/tests/_files')
65 files changed, 3029 insertions, 0 deletions
diff --git a/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-clover.xml b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-clover.xml new file mode 100644 index 0000000..0986fdf --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-clover.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<coverage generated="%i"> + <project timestamp="%i" name="BankAccount"> + <file name="%s/BankAccount.php"> + <class name="BankAccount" namespace="global"> + <metrics complexity="5" methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="5" elements="14" coveredelements="8"/> + </class> + <line num="6" type="method" name="getBalance" visibility="public" complexity="1" crap="1" count="2"/> + <line num="8" type="stmt" count="2"/> + <line num="11" type="method" name="setBalance" visibility="protected" complexity="2" crap="6" count="0"/> + <line num="13" type="stmt" count="0"/> + <line num="14" type="stmt" count="0"/> + <line num="15" type="stmt" count="0"/> + <line num="16" type="stmt" count="0"/> + <line num="18" type="stmt" count="0"/> + <line num="20" type="method" name="depositMoney" visibility="public" complexity="1" crap="1" count="2"/> + <line num="22" type="stmt" count="2"/> + <line num="24" type="stmt" count="1"/> + <line num="27" type="method" name="withdrawMoney" visibility="public" complexity="1" crap="1" count="2"/> + <line num="29" type="stmt" count="2"/> + <line num="31" type="stmt" count="1"/> + <metrics loc="33" ncloc="33" classes="1" methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="5" elements="14" coveredelements="8"/> + </file> + <metrics files="1" loc="33" ncloc="33" classes="1" methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="5" elements="14" coveredelements="8"/> + </project> +</coverage> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-crap4j.xml b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-crap4j.xml new file mode 100644 index 0000000..f2f56ea --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-crap4j.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<crap_result> + <project>BankAccount</project> + <timestamp>%s</timestamp> + <stats> + <name>Method Crap Stats</name> + <methodCount>4</methodCount> + <crapMethodCount>0</crapMethodCount> + <crapLoad>0</crapLoad> + <totalCrap>9</totalCrap> + <crapMethodPercent>0</crapMethodPercent> + </stats> + <methods> + <method> + <package>global</package> + <className>BankAccount</className> + <methodName>getBalance</methodName> + <methodSignature>getBalance()</methodSignature> + <fullMethod>getBalance()</fullMethod> + <crap>1</crap> + <complexity>1</complexity> + <coverage>100</coverage> + <crapLoad>0</crapLoad> + </method> + <method> + <package>global</package> + <className>BankAccount</className> + <methodName>setBalance</methodName> + <methodSignature>setBalance($balance)</methodSignature> + <fullMethod>setBalance($balance)</fullMethod> + <crap>6</crap> + <complexity>2</complexity> + <coverage>0</coverage> + <crapLoad>0</crapLoad> + </method> + <method> + <package>global</package> + <className>BankAccount</className> + <methodName>depositMoney</methodName> + <methodSignature>depositMoney($balance)</methodSignature> + <fullMethod>depositMoney($balance)</fullMethod> + <crap>1</crap> + <complexity>1</complexity> + <coverage>100</coverage> + <crapLoad>0</crapLoad> + </method> + <method> + <package>global</package> + <className>BankAccount</className> + <methodName>withdrawMoney</methodName> + <methodSignature>withdrawMoney($balance)</methodSignature> + <fullMethod>withdrawMoney($balance)</fullMethod> + <crap>1</crap> + <complexity>1</complexity> + <coverage>100</coverage> + <crapLoad>0</crapLoad> + </method> + </methods> +</crap_result> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-text.txt b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-text.txt new file mode 100644 index 0000000..892d834 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-text.txt @@ -0,0 +1,12 @@ + + +Code Coverage Report: + %s + + Summary: + Classes: 0.00% (0/1) + Methods: 75.00% (3/4) + Lines: 50.00% (5/10) + +BankAccount + Methods: 75.00% ( 3/ 4) Lines: 50.00% ( 5/ 10) diff --git a/vendor/phpunit/php-code-coverage/tests/_files/BankAccount.php b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount.php new file mode 100644 index 0000000..4238c15 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/BankAccount.php @@ -0,0 +1,33 @@ +<?php +class BankAccount +{ + protected $balance = 0; + + public function getBalance() + { + return $this->balance; + } + + protected function setBalance($balance) + { + if ($balance >= 0) { + $this->balance = $balance; + } else { + throw new RuntimeException; + } + } + + public function depositMoney($balance) + { + $this->setBalance($this->getBalance() + $balance); + + return $this->getBalance(); + } + + public function withdrawMoney($balance) + { + $this->setBalance($this->getBalance() - $balance); + + return $this->getBalance(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/BankAccountTest.php b/vendor/phpunit/php-code-coverage/tests/_files/BankAccountTest.php new file mode 100644 index 0000000..3a6277b --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/BankAccountTest.php @@ -0,0 +1,66 @@ +<?php +require_once 'BankAccount.php'; + +class BankAccountTest extends PHPUnit_Framework_TestCase +{ + protected $ba; + + protected function setUp() + { + $this->ba = new BankAccount; + } + + /** + * @covers BankAccount::getBalance + */ + public function testBalanceIsInitiallyZero() + { + $this->assertEquals(0, $this->ba->getBalance()); + } + + /** + * @covers BankAccount::withdrawMoney + */ + public function testBalanceCannotBecomeNegative() + { + try { + $this->ba->withdrawMoney(1); + } catch (RuntimeException $e) { + $this->assertEquals(0, $this->ba->getBalance()); + + return; + } + + $this->fail(); + } + + /** + * @covers BankAccount::depositMoney + */ + public function testBalanceCannotBecomeNegative2() + { + try { + $this->ba->depositMoney(-1); + } catch (RuntimeException $e) { + $this->assertEquals(0, $this->ba->getBalance()); + + return; + } + + $this->fail(); + } + + /** + * @covers BankAccount::getBalance + * @covers BankAccount::depositMoney + * @covers BankAccount::withdrawMoney + */ + public function testDepositWithdrawMoney() + { + $this->assertEquals(0, $this->ba->getBalance()); + $this->ba->depositMoney(1); + $this->assertEquals(1, $this->ba->getBalance()); + $this->ba->withdrawMoney(1); + $this->assertEquals(0, $this->ba->getBalance()); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassExtendedTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassExtendedTest.php new file mode 100644 index 0000000..df12d34 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassExtendedTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageClassExtendedTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass<extended> + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassTest.php new file mode 100644 index 0000000..7f569ae --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageClassTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php new file mode 100644 index 0000000..33b5fe3 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php @@ -0,0 +1,11 @@ +<?php +class CoverageFunctionParenthesesTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers ::globalFunction() + */ + public function testSomething() + { + globalFunction(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php new file mode 100644 index 0000000..becc6c8 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php @@ -0,0 +1,11 @@ +<?php +class CoverageFunctionParenthesesWhitespaceTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers ::globalFunction ( ) + */ + public function testSomething() + { + globalFunction(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionTest.php new file mode 100644 index 0000000..c621fd2 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionTest.php @@ -0,0 +1,11 @@ +<?php +class CoverageFunctionTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers ::globalFunction + */ + public function testSomething() + { + globalFunction(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodOneLineAnnotationTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodOneLineAnnotationTest.php new file mode 100644 index 0000000..55d7f57 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodOneLineAnnotationTest.php @@ -0,0 +1,11 @@ +<?php + +class CoverageMethodOneLineAnnotationTest extends PHPUnit_Framework_TestCase +{ + /** @covers CoveredClass::publicMethod */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesTest.php new file mode 100644 index 0000000..4223004 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageMethodParenthesesTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::publicMethod() + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesWhitespaceTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesWhitespaceTest.php new file mode 100644 index 0000000..d1be1c6 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesWhitespaceTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageMethodParenthesesWhitespaceTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::publicMethod ( ) + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodTest.php new file mode 100644 index 0000000..167b3db --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageMethodTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::publicMethod + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php new file mode 100644 index 0000000..0b414c2 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php @@ -0,0 +1,9 @@ +<?php +class CoverageNoneTest extends PHPUnit_Framework_TestCase +{ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPrivateTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPrivateTest.php new file mode 100644 index 0000000..12b56e8 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPrivateTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageNotPrivateTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::<!private> + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotProtectedTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotProtectedTest.php new file mode 100644 index 0000000..c69d261 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotProtectedTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageNotProtectedTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::<!protected> + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPublicTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPublicTest.php new file mode 100644 index 0000000..aebfe4b --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPublicTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageNotPublicTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::<!public> + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php new file mode 100644 index 0000000..5d5680d --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php @@ -0,0 +1,13 @@ +<?php +class CoverageNothingTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::publicMethod + * @coversNothing + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoveragePrivateTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoveragePrivateTest.php new file mode 100644 index 0000000..f09560d --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoveragePrivateTest.php @@ -0,0 +1,12 @@ +<?php +class CoveragePrivateTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::<private> + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageProtectedTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageProtectedTest.php new file mode 100644 index 0000000..9b3acbf --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageProtectedTest.php @@ -0,0 +1,12 @@ +<?php +class CoverageProtectedTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::<protected> + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoveragePublicTest.php b/vendor/phpunit/php-code-coverage/tests/_files/CoveragePublicTest.php new file mode 100644 index 0000000..480a522 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoveragePublicTest.php @@ -0,0 +1,12 @@ +<?php +class CoveragePublicTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers CoveredClass::<public> + */ + public function testSomething() + { + $o = new CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoverageTwoDefaultClassAnnotations.php b/vendor/phpunit/php-code-coverage/tests/_files/CoverageTwoDefaultClassAnnotations.php new file mode 100644 index 0000000..7ffc5c9 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoverageTwoDefaultClassAnnotations.php @@ -0,0 +1,18 @@ +<?php + +/** + * @coversDefaultClass \NamespaceOne + * @coversDefaultClass \AnotherDefault\Name\Space\Does\Not\Work + */ +class CoverageTwoDefaultClassAnnotations +{ + /** + * @covers Foo\CoveredClass::<public> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } + +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php b/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php new file mode 100644 index 0000000..f382ce9 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php @@ -0,0 +1,36 @@ +<?php +class CoveredParentClass +{ + private function privateMethod() + { + } + + protected function protectedMethod() + { + $this->privateMethod(); + } + + public function publicMethod() + { + $this->protectedMethod(); + } +} + +class CoveredClass extends CoveredParentClass +{ + private function privateMethod() + { + } + + protected function protectedMethod() + { + parent::protectedMethod(); + $this->privateMethod(); + } + + public function publicMethod() + { + parent::publicMethod(); + $this->protectedMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php b/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php new file mode 100644 index 0000000..9989eb0 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php @@ -0,0 +1,4 @@ +<?php +function globalFunction() +{ +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassExtendedTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassExtendedTest.php new file mode 100644 index 0000000..d0954cb --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassExtendedTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoverageClassExtendedTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass<extended> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassTest.php new file mode 100644 index 0000000..63912c0 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoverageClassTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassPublicTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassPublicTest.php new file mode 100644 index 0000000..45f583b --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassPublicTest.php @@ -0,0 +1,15 @@ +<?php +/** + * @coversDefaultClass \Foo\CoveredClass + */ +class NamespaceCoverageCoversClassPublicTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers ::publicMethod + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassTest.php new file mode 100644 index 0000000..b336745 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassTest.php @@ -0,0 +1,20 @@ +<?php +/** + * @coversDefaultClass \Foo\CoveredClass + */ +class NamespaceCoverageCoversClassTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers ::privateMethod + * @covers ::protectedMethod + * @covers ::publicMethod + * @covers \Foo\CoveredParentClass::privateMethod + * @covers \Foo\CoveredParentClass::protectedMethod + * @covers \Foo\CoveredParentClass::publicMethod + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageMethodTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageMethodTest.php new file mode 100644 index 0000000..35dfb8b --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageMethodTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoverageMethodTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass::publicMethod + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPrivateTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPrivateTest.php new file mode 100644 index 0000000..552c9ec --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPrivateTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoverageNotPrivateTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass::<!private> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotProtectedTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotProtectedTest.php new file mode 100644 index 0000000..33fc8c7 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotProtectedTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoverageNotProtectedTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass::<!protected> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPublicTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPublicTest.php new file mode 100644 index 0000000..ccbc500 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPublicTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoverageNotPublicTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass::<!public> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php new file mode 100644 index 0000000..cce7ba9 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoveragePrivateTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass::<private> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageProtectedTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageProtectedTest.php new file mode 100644 index 0000000..dbbcc1c --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageProtectedTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoverageProtectedTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass::<protected> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php new file mode 100644 index 0000000..bf1bff8 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php @@ -0,0 +1,12 @@ +<?php +class NamespaceCoveragePublicTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers Foo\CoveredClass::<public> + */ + public function testSomething() + { + $o = new Foo\CoveredClass; + $o->publicMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php new file mode 100644 index 0000000..5bd0ddf --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php @@ -0,0 +1,38 @@ +<?php +namespace Foo; + +class CoveredParentClass +{ + private function privateMethod() + { + } + + protected function protectedMethod() + { + $this->privateMethod(); + } + + public function publicMethod() + { + $this->protectedMethod(); + } +} + +class CoveredClass extends CoveredParentClass +{ + private function privateMethod() + { + } + + protected function protectedMethod() + { + parent::protectedMethod(); + $this->privateMethod(); + } + + public function publicMethod() + { + parent::publicMethod(); + $this->protectedMethod(); + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php b/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php new file mode 100644 index 0000000..be07ef4 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php @@ -0,0 +1,24 @@ +<?php +class NotExistingCoveredElementTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers NotExistingClass + */ + public function testOne() + { + } + + /** + * @covers NotExistingClass::notExistingMethod + */ + public function testTwo() + { + } + + /** + * @covers NotExistingClass::<public> + */ + public function testThree() + { + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html new file mode 100644 index 0000000..819a4a3 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html @@ -0,0 +1,267 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Code Coverage for %s/BankAccount.php</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li><a href="index.html">%s</a></li> + <li class="active">BankAccount.php</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <table class="table table-bordered"> + <thead> + <tr> + <td> </td> + <td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td> + </tr> + <tr> + <td> </td> + <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td> + <td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td> + <td colspan="3"><div align="center"><strong>Lines</strong></div></td> + </tr> + </thead> + <tbody> + <tr> + <td class="danger">Total</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%"> + <span class="sr-only">75.00% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">75.00%</div></td> + <td class="warning small"><div align="right">3 / 4</div></td> + <td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">5 / 10</div></td> + </tr> + + <tr> + <td class="danger">BankAccount</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%"> + <span class="sr-only">75.00% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">75.00%</div></td> + <td class="warning small"><div align="right">3 / 4</div></td> + <td class="warning small">8.12</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">5 / 10</div></td> + </tr> + + <tr> + <td class="success" colspan="4"> <a href="#6"><abbr title="getBalance()">getBalance</abbr></a></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + </tr> + + <tr> + <td class="danger" colspan="4"> <a href="#11"><abbr title="setBalance($balance)">setBalance</abbr></a></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + <td class="danger small">6</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 5</div></td> + </tr> + + <tr> + <td class="success" colspan="4"> <a href="#20"><abbr title="depositMoney($balance)">depositMoney</abbr></a></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">2 / 2</div></td> + </tr> + + <tr> + <td class="success" colspan="4"> <a href="#27"><abbr title="withdrawMoney($balance)">withdrawMoney</abbr></a></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">2 / 2</div></td> + </tr> + + + </tbody> + </table> + <table id="code" class="table table-borderless table-condensed"> + <tbody> + <tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr> + <tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">BankAccount</span></td></tr> + <tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">protected</span><span class="default"> </span><span class="default">$balance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">0</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">getBalance</span><span class="keyword">(</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="2 tests cover line 8" data-content="<ul><li class="covered-by-large-tests">BankAccountTest::testBalanceIsInitiallyZero</li><li class="covered-by-large-tests">BankAccountTest::testDepositWithdrawMoney</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">balance</span><span class="keyword">;</span></td></tr> + <tr class="warning"><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">protected</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">setBalance</span><span class="keyword">(</span><span class="default">$balance</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="danger"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">if</span><span class="default"> </span><span class="keyword">(</span><span class="default">$balance</span><span class="default"> </span><span class="default">>=</span><span class="default"> </span><span class="default">0</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="danger"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">balance</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">$balance</span><span class="keyword">;</span></td></tr> + <tr class="danger"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span><span class="default"> </span><span class="keyword">else</span><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="danger"><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">throw</span><span class="default"> </span><span class="keyword">new</span><span class="default"> </span><span class="default">RuntimeException</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr class="danger"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">depositMoney</span><span class="keyword">(</span><span class="default">$balance</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="2 tests cover line 22" data-content="<ul><li class="covered-by-large-tests">BankAccountTest::testBalanceCannotBecomeNegative2</li><li class="covered-by-large-tests">BankAccountTest::testDepositWithdrawMoney</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">setBalance</span><span class="keyword">(</span><span class="default">$this</span><span class="default">-></span><span class="default">getBalance</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">+</span><span class="default"> </span><span class="default">$balance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 24" data-content="<ul><li class="covered-by-large-tests">BankAccountTest::testDepositWithdrawMoney</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">getBalance</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr> + <tr class="warning"><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">withdrawMoney</span><span class="keyword">(</span><span class="default">$balance</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="2 tests cover line 29" data-content="<ul><li class="covered-by-large-tests">BankAccountTest::testBalanceCannotBecomeNegative</li><li class="covered-by-large-tests">BankAccountTest::testDepositWithdrawMoney</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">setBalance</span><span class="keyword">(</span><span class="default">$this</span><span class="default">-></span><span class="default">getBalance</span><span class="keyword">(</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">-</span><span class="default"> </span><span class="default">$balance</span><span class="keyword">)</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 31" data-content="<ul><li class="covered-by-large-tests">BankAccountTest::testDepositWithdrawMoney</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">return</span><span class="default"> </span><span class="default">$this</span><span class="default">-></span><span class="default">getBalance</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr> + <tr class="warning"><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr> + + </tbody> + </table> + <footer> + <hr/> + <h4>Legend</h4> + <p> + <span class="success"><strong>Executed</strong></span> + <span class="danger"><strong>Not Executed</strong></span> + <span class="warning"><strong>Dead Code</strong></span> + </p> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + <a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + <script type="text/javascript"> + $(function() { + var $window = $(window) + , $top_link = $('#toplink') + , $body = $('body, html') + , offset = $('#code').offset().top; + + $top_link.hide().click(function(event) { + event.preventDefault(); + $body.animate({scrollTop:0}, 800); + }); + + $window.scroll(function() { + if($window.scrollTop() > offset) { + $top_link.fadeIn(); + } else { + $top_link.fadeOut(); + } + }).scroll(); + + $('.popin').popover({trigger: 'hover'}); + }); + </script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/dashboard.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/dashboard.html new file mode 100644 index 0000000..11f9a1e --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/dashboard.html @@ -0,0 +1,290 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Dashboard for %s</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/nv.d3.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li><a href="index.html">%s</a></li> + <li class="active">(Dashboard)</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <h2>Classes</h2> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Coverage Distribution</h3> + <div id="classCoverageDistribution" style="height: 300px;"> + <svg></svg> + </div> + </div> + <div class="col-md-6"> + <h3>Complexity</h3> + <div id="classComplexity" style="height: 300px;"> + <svg></svg> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Insufficient Coverage</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Class</th> + <th class="text-right">Coverage</th> + </tr> + </thead> + <tbody> + <tr><td><a href="BankAccount.php.html#2">BankAccount</a></td><td class="text-right">50%</td></tr> + + </tbody> + </table> + </div> + </div> + <div class="col-md-6"> + <h3>Project Risks</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Class</th> + <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th> + </tr> + </thead> + <tbody> + <tr><td><a href="BankAccount.php.html#2">BankAccount</a></td><td class="text-right">8</td></tr> + + </tbody> + </table> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-12"> + <h2>Methods</h2> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Coverage Distribution</h3> + <div id="methodCoverageDistribution" style="height: 300px;"> + <svg></svg> + </div> + </div> + <div class="col-md-6"> + <h3>Complexity</h3> + <div id="methodComplexity" style="height: 300px;"> + <svg></svg> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Insufficient Coverage</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Method</th> + <th class="text-right">Coverage</th> + </tr> + </thead> + <tbody> + <tr><td><a href="BankAccount.php.html#11"><abbr title="BankAccount::setBalance">setBalance</abbr></a></td><td class="text-right">0%</td></tr> + + </tbody> + </table> + </div> + </div> + <div class="col-md-6"> + <h3>Project Risks</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Method</th> + <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th> + </tr> + </thead> + <tbody> + <tr><td><a href="BankAccount.php.html#11"><abbr title="BankAccount::setBalance">setBalance</abbr></a></td><td class="text-right">6</td></tr> + + </tbody> + </table> + </div> + </div> + </div> + <footer> + <hr/> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + <script src="js/d3.min.js" type="text/javascript"></script> + <script src="js/nv.d3.min.js" type="text/javascript"></script> + <script type="text/javascript"> +$(document).ready(function() { + nv.addGraph(function() { + var chart = nv.models.multiBarChart(); + chart.tooltips(false) + .showControls(false) + .showLegend(false) + .reduceXTicks(false) + .staggerLabels(true) + .yAxis.tickFormat(d3.format('d')); + + d3.select('#classCoverageDistribution svg') + .datum(getCoverageDistributionData([0,0,0,0,0,0,1,0,0,0,0,0], "Class Coverage")) + .transition().duration(500).call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + nv.addGraph(function() { + var chart = nv.models.multiBarChart(); + chart.tooltips(false) + .showControls(false) + .showLegend(false) + .reduceXTicks(false) + .staggerLabels(true) + .yAxis.tickFormat(d3.format('d')); + + d3.select('#methodCoverageDistribution svg') + .datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,0,0,3], "Method Coverage")) + .transition().duration(500).call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + function getCoverageDistributionData(data, label) { + var labels = [ + '0%', + '0-10%', + '10-20%', + '20-30%', + '30-40%', + '40-50%', + '50-60%', + '60-70%', + '70-80%', + '80-90%', + '90-100%', + '100%' + ]; + var values = []; + $.each(labels, function(key) { + values.push({x: labels[key], y: data[key]}); + }); + + return [ + { + key: label, + values: values, + color: "#4572A7" + } + ]; + } + nv.addGraph(function() { + var chart = nv.models.scatterChart() + .showDistX(true) + .showDistY(true) + .showLegend(false) + .forceX([0, 100]); + chart.tooltipContent(function(graph) { + return '<p>' + graph.point.class + '</p>'; + }); + + chart.xAxis.axisLabel('Code Coverage (in percent)'); + chart.yAxis.axisLabel('Cyclomatic Complexity'); + + d3.select('#classComplexity svg') + .datum(getComplexityData([[50,5,"<a href=\"BankAccount.php.html#2\">BankAccount<\/a>"]], 'Class Complexity')) + .transition() + .duration(500) + .call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + nv.addGraph(function() { + var chart = nv.models.scatterChart() + .showDistX(true) + .showDistY(true) + .showLegend(false) + .forceX([0, 100]); + chart.tooltipContent(function(graph) { + return '<p>' + graph.point.class + '</p>'; + }); + + chart.xAxis.axisLabel('Code Coverage (in percent)'); + chart.yAxis.axisLabel('Method Complexity'); + + d3.select('#methodComplexity svg') + .datum(getComplexityData([[100,1,"<a href=\"BankAccount.php.html#6\">BankAccount::getBalance<\/a>"],[0,2,"<a href=\"BankAccount.php.html#11\">BankAccount::setBalance<\/a>"],[100,1,"<a href=\"BankAccount.php.html#20\">BankAccount::depositMoney<\/a>"],[100,1,"<a href=\"BankAccount.php.html#27\">BankAccount::withdrawMoney<\/a>"]], 'Method Complexity')) + .transition() + .duration(500) + .call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + function getComplexityData(data, label) { + var values = []; + $.each(data, function(key) { + var value = Math.round(data[key][0]*100) / 100; + values.push({ + x: value, + y: data[key][1], + class: data[key][2], + size: 0.05, + shape: 'diamond' + }); + }); + + return [ + { + key: label, + values: values, + color: "#4572A7" + } + ]; + } +}); + </script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/index.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/index.html new file mode 100644 index 0000000..ba6ce68 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForBankAccount/index.html @@ -0,0 +1,119 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Code Coverage for %s</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li class="active">%s</li> + <li>(<a href="dashboard.html">Dashboard</a>)</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <table class="table table-bordered"> + <thead> + <tr> + <td> </td> + <td colspan="9"><div align="center"><strong>Code Coverage</strong></div></td> + </tr> + <tr> + <td> </td> + <td colspan="3"><div align="center"><strong>Lines</strong></div></td> + <td colspan="3"><div align="center"><strong>Functions and Methods</strong></div></td> + <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td> + </tr> + </thead> + <tbody> + <tr> + <td class="danger">Total</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">5 / 10</div></td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%"> + <span class="sr-only">75.00% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">75.00%</div></td> + <td class="warning small"><div align="right">3 / 4</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + </tr> + + <tr> + <td class="danger"><span class="glyphicon glyphicon-file"></span> <a href="BankAccount.php.html">BankAccount.php</a></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">5 / 10</div></td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%"> + <span class="sr-only">75.00% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">75.00%</div></td> + <td class="warning small"><div align="right">3 / 4</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + </tr> + + + </tbody> + </table> + <footer> + <hr/> + <h4>Legend</h4> + <p> + <span class="danger"><strong>Low</strong>: 0% to 50%</span> + <span class="warning"><strong>Medium</strong>: 50% to 90%</span> + <span class="success"><strong>High</strong>: 90% to 100%</span> + </p> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html new file mode 100644 index 0000000..4b2adac --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html @@ -0,0 +1,288 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Dashboard for %s</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/nv.d3.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li><a href="index.html">%s</a></li> + <li class="active">(Dashboard)</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <h2>Classes</h2> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Coverage Distribution</h3> + <div id="classCoverageDistribution" style="height: 300px;"> + <svg></svg> + </div> + </div> + <div class="col-md-6"> + <h3>Complexity</h3> + <div id="classComplexity" style="height: 300px;"> + <svg></svg> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Insufficient Coverage</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Class</th> + <th class="text-right">Coverage</th> + </tr> + </thead> + <tbody> + <tr><td><a href="source_with_class_and_anonymous_function.php.html#3">CoveredClassWithAnonymousFunctionInStaticMethod</a></td><td class="text-right">87%</td></tr> + + </tbody> + </table> + </div> + </div> + <div class="col-md-6"> + <h3>Project Risks</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Class</th> + <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th> + </tr> + </thead> + <tbody> + + </tbody> + </table> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-12"> + <h2>Methods</h2> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Coverage Distribution</h3> + <div id="methodCoverageDistribution" style="height: 300px;"> + <svg></svg> + </div> + </div> + <div class="col-md-6"> + <h3>Complexity</h3> + <div id="methodComplexity" style="height: 300px;"> + <svg></svg> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Insufficient Coverage</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Method</th> + <th class="text-right">Coverage</th> + </tr> + </thead> + <tbody> + <tr><td><a href="source_with_class_and_anonymous_function.php.html#5"><abbr title="CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous">runAnonymous</abbr></a></td><td class="text-right">66%</td></tr> + + </tbody> + </table> + </div> + </div> + <div class="col-md-6"> + <h3>Project Risks</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Method</th> + <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th> + </tr> + </thead> + <tbody> + + </tbody> + </table> + </div> + </div> + </div> + <footer> + <hr/> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + <script src="js/d3.min.js" type="text/javascript"></script> + <script src="js/nv.d3.min.js" type="text/javascript"></script> + <script type="text/javascript"> +$(document).ready(function() { + nv.addGraph(function() { + var chart = nv.models.multiBarChart(); + chart.tooltips(false) + .showControls(false) + .showLegend(false) + .reduceXTicks(false) + .staggerLabels(true) + .yAxis.tickFormat(d3.format('d')); + + d3.select('#classCoverageDistribution svg') + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,0,0], "Class Coverage")) + .transition().duration(500).call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + nv.addGraph(function() { + var chart = nv.models.multiBarChart(); + chart.tooltips(false) + .showControls(false) + .showLegend(false) + .reduceXTicks(false) + .staggerLabels(true) + .yAxis.tickFormat(d3.format('d')); + + d3.select('#methodCoverageDistribution svg') + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,0,0,0,1], "Method Coverage")) + .transition().duration(500).call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + function getCoverageDistributionData(data, label) { + var labels = [ + '0%', + '0-10%', + '10-20%', + '20-30%', + '30-40%', + '40-50%', + '50-60%', + '60-70%', + '70-80%', + '80-90%', + '90-100%', + '100%' + ]; + var values = []; + $.each(labels, function(key) { + values.push({x: labels[key], y: data[key]}); + }); + + return [ + { + key: label, + values: values, + color: "#4572A7" + } + ]; + } + nv.addGraph(function() { + var chart = nv.models.scatterChart() + .showDistX(true) + .showDistY(true) + .showLegend(false) + .forceX([0, 100]); + chart.tooltipContent(function(graph) { + return '<p>' + graph.point.class + '</p>'; + }); + + chart.xAxis.axisLabel('Code Coverage (in percent)'); + chart.yAxis.axisLabel('Cyclomatic Complexity'); + + d3.select('#classComplexity svg') + .datum(getComplexityData([[87.5,2,"<a href=\"source_with_class_and_anonymous_function.php.html#3\">CoveredClassWithAnonymousFunctionInStaticMethod<\/a>"]], 'Class Complexity')) + .transition() + .duration(500) + .call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + nv.addGraph(function() { + var chart = nv.models.scatterChart() + .showDistX(true) + .showDistY(true) + .showLegend(false) + .forceX([0, 100]); + chart.tooltipContent(function(graph) { + return '<p>' + graph.point.class + '</p>'; + }); + + chart.xAxis.axisLabel('Code Coverage (in percent)'); + chart.yAxis.axisLabel('Method Complexity'); + + d3.select('#methodComplexity svg') + .datum(getComplexityData([[66.666666666667,1,"<a href=\"source_with_class_and_anonymous_function.php.html#5\">CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous<\/a>"],[100,1,"<a href=\"source_with_class_and_anonymous_function.php.html#11\">CoveredClassWithAnonymousFunctionInStaticMethod::anonymous function<\/a>"]], 'Method Complexity')) + .transition() + .duration(500) + .call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + function getComplexityData(data, label) { + var values = []; + $.each(data, function(key) { + var value = Math.round(data[key][0]*100) / 100; + values.push({ + x: value, + y: data[key][1], + class: data[key][2], + size: 0.05, + shape: 'diamond' + }); + }); + + return [ + { + key: label, + values: values, + color: "#4572A7" + } + ]; + } +}); + </script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/index.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/index.html new file mode 100644 index 0000000..ae3368b --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/index.html @@ -0,0 +1,119 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Code Coverage for %s</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li class="active">%s</li> + <li>(<a href="dashboard.html">Dashboard</a>)</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <table class="table table-bordered"> + <thead> + <tr> + <td> </td> + <td colspan="9"><div align="center"><strong>Code Coverage</strong></div></td> + </tr> + <tr> + <td> </td> + <td colspan="3"><div align="center"><strong>Lines</strong></div></td> + <td colspan="3"><div align="center"><strong>Functions and Methods</strong></div></td> + <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td> + </tr> + </thead> + <tbody> + <tr> + <td class="warning">Total</td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="87.50" aria-valuemin="0" aria-valuemax="100" style="width: 87.50%"> + <span class="sr-only">87.50% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">87.50%</div></td> + <td class="warning small"><div align="right">7 / 8</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">1 / 2</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + </tr> + + <tr> + <td class="warning"><span class="glyphicon glyphicon-file"></span> <a href="source_with_class_and_anonymous_function.php.html">source_with_class_and_anonymous_function.php</a></td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="87.50" aria-valuemin="0" aria-valuemax="100" style="width: 87.50%"> + <span class="sr-only">87.50% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">87.50%</div></td> + <td class="warning small"><div align="right">7 / 8</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">1 / 2</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + </tr> + + + </tbody> + </table> + <footer> + <hr/> + <h4>Legend</h4> + <p> + <span class="danger"><strong>Low</strong>: 0% to 50%</span> + <span class="warning"><strong>Medium</strong>: 50% to 90%</span> + <span class="success"><strong>High</strong>: 90% to 100%</span> + </p> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html new file mode 100644 index 0000000..6165fc1 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html @@ -0,0 +1,211 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Code Coverage for %s/source_with_class_and_anonymous_function.php</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li><a href="index.html">%s</a></li> + <li class="active">source_with_class_and_anonymous_function.php</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <table class="table table-bordered"> + <thead> + <tr> + <td> </td> + <td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td> + </tr> + <tr> + <td> </td> + <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td> + <td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td> + <td colspan="3"><div align="center"><strong>Lines</strong></div></td> + </tr> + </thead> + <tbody> + <tr> + <td class="danger">Total</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">1 / 2</div></td> + <td class="danger small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="87.50" aria-valuemin="0" aria-valuemax="100" style="width: 87.50%"> + <span class="sr-only">87.50% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">87.50%</div></td> + <td class="warning small"><div align="right">7 / 8</div></td> + </tr> + + <tr> + <td class="danger">CoveredClassWithAnonymousFunctionInStaticMethod</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">1 / 2</div></td> + <td class="danger small">2.01</td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="87.50" aria-valuemin="0" aria-valuemax="100" style="width: 87.50%"> + <span class="sr-only">87.50% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">87.50%</div></td> + <td class="warning small"><div align="right">7 / 8</div></td> + </tr> + + <tr> + <td class="danger" colspan="4"> <a href="#5"><abbr title="runAnonymous()">runAnonymous</abbr></a></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%"> + <span class="sr-only">0.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">0.00%</div></td> + <td class="danger small"><div align="right">0 / 1</div></td> + <td class="danger small">1.04</td> + <td class="warning big"> <div class="progress"> + <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="66.67" aria-valuemin="0" aria-valuemax="100" style="width: 66.67%"> + <span class="sr-only">66.67% covered (warning)</span> + </div> + </div> +</td> + <td class="warning small"><div align="right">66.67%</div></td> + <td class="warning small"><div align="right">2 / 3</div></td> + </tr> + + <tr> + <td class="success" colspan="4"> <a href="#11"><abbr title="anonymous function (&$val, $key)">anonymous function</abbr></a></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">2 / 2</div></td> + </tr> + + + </tbody> + </table> + <table id="code" class="table table-borderless table-condensed"> + <tbody> + <tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr> + <tr><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">CoveredClassWithAnonymousFunctionInStaticMethod</span></td></tr> + <tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">static</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">runAnonymous</span><span class="keyword">(</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 7" data-content="<ul><li class="covered-by-large-tests">ClassWithAnonymousFunction</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$filter</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="keyword">[</span><span class="default">'abc124'</span><span class="keyword">,</span><span class="default"> </span><span class="default">'abc123'</span><span class="keyword">,</span><span class="default"> </span><span class="default">'123'</span><span class="keyword">]</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 9" data-content="<ul><li class="covered-by-large-tests">ClassWithAnonymousFunction</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">array_walk</span><span class="keyword">(</span></td></tr> + <tr class="danger"><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$filter</span><span class="keyword">,</span></td></tr> + <tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="keyword">(</span><span class="keyword">&</span><span class="default">$val</span><span class="keyword">,</span><span class="default"> </span><span class="default">$key</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 12" data-content="<ul><li class="covered-by-large-tests">ClassWithAnonymousFunction</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$val</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">preg_replace</span><span class="keyword">(</span><span class="default">'|[^0-9]|'</span><span class="keyword">,</span><span class="default"> </span><span class="default">''</span><span class="keyword">,</span><span class="default"> </span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">;</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 13" data-content="<ul><li class="covered-by-large-tests">ClassWithAnonymousFunction</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 14" data-content="<ul><li class="covered-by-large-tests">ClassWithAnonymousFunction</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">)</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// Should be covered</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 17" data-content="<ul><li class="covered-by-large-tests">ClassWithAnonymousFunction</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">$extravar</span><span class="default"> </span><span class="keyword">=</span><span class="default"> </span><span class="default">true</span><span class="keyword">;</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 18" data-content="<ul><li class="covered-by-large-tests">ClassWithAnonymousFunction</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr> + + </tbody> + </table> + <footer> + <hr/> + <h4>Legend</h4> + <p> + <span class="success"><strong>Executed</strong></span> + <span class="danger"><strong>Not Executed</strong></span> + <span class="warning"><strong>Dead Code</strong></span> + </p> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + <a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + <script type="text/javascript"> + $(function() { + var $window = $(window) + , $top_link = $('#toplink') + , $body = $('body, html') + , offset = $('#code').offset().top; + + $top_link.hide().click(function(event) { + event.preventDefault(); + $body.animate({scrollTop:0}, 800); + }); + + $window.scroll(function() { + if($window.scrollTop() > offset) { + $top_link.fadeIn(); + } else { + $top_link.fadeOut(); + } + }).scroll(); + + $('.popin').popover({trigger: 'hover'}); + }); + </script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/dashboard.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/dashboard.html new file mode 100644 index 0000000..f905a9c --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/dashboard.html @@ -0,0 +1,286 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Dashboard for %s</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/nv.d3.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li><a href="index.html">%s</a></li> + <li class="active">(Dashboard)</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <h2>Classes</h2> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Coverage Distribution</h3> + <div id="classCoverageDistribution" style="height: 300px;"> + <svg></svg> + </div> + </div> + <div class="col-md-6"> + <h3>Complexity</h3> + <div id="classComplexity" style="height: 300px;"> + <svg></svg> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Insufficient Coverage</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Class</th> + <th class="text-right">Coverage</th> + </tr> + </thead> + <tbody> + + </tbody> + </table> + </div> + </div> + <div class="col-md-6"> + <h3>Project Risks</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Class</th> + <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th> + </tr> + </thead> + <tbody> + + </tbody> + </table> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-12"> + <h2>Methods</h2> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Coverage Distribution</h3> + <div id="methodCoverageDistribution" style="height: 300px;"> + <svg></svg> + </div> + </div> + <div class="col-md-6"> + <h3>Complexity</h3> + <div id="methodComplexity" style="height: 300px;"> + <svg></svg> + </div> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h3>Insufficient Coverage</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Method</th> + <th class="text-right">Coverage</th> + </tr> + </thead> + <tbody> + + </tbody> + </table> + </div> + </div> + <div class="col-md-6"> + <h3>Project Risks</h3> + <div class="scrollbox"> + <table class="table"> + <thead> + <tr> + <th>Method</th> + <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th> + </tr> + </thead> + <tbody> + + </tbody> + </table> + </div> + </div> + </div> + <footer> + <hr/> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + <script src="js/d3.min.js" type="text/javascript"></script> + <script src="js/nv.d3.min.js" type="text/javascript"></script> + <script type="text/javascript"> +$(document).ready(function() { + nv.addGraph(function() { + var chart = nv.models.multiBarChart(); + chart.tooltips(false) + .showControls(false) + .showLegend(false) + .reduceXTicks(false) + .staggerLabels(true) + .yAxis.tickFormat(d3.format('d')); + + d3.select('#classCoverageDistribution svg') + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,2], "Class Coverage")) + .transition().duration(500).call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + nv.addGraph(function() { + var chart = nv.models.multiBarChart(); + chart.tooltips(false) + .showControls(false) + .showLegend(false) + .reduceXTicks(false) + .staggerLabels(true) + .yAxis.tickFormat(d3.format('d')); + + d3.select('#methodCoverageDistribution svg') + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,2], "Method Coverage")) + .transition().duration(500).call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + function getCoverageDistributionData(data, label) { + var labels = [ + '0%', + '0-10%', + '10-20%', + '20-30%', + '30-40%', + '40-50%', + '50-60%', + '60-70%', + '70-80%', + '80-90%', + '90-100%', + '100%' + ]; + var values = []; + $.each(labels, function(key) { + values.push({x: labels[key], y: data[key]}); + }); + + return [ + { + key: label, + values: values, + color: "#4572A7" + } + ]; + } + nv.addGraph(function() { + var chart = nv.models.scatterChart() + .showDistX(true) + .showDistY(true) + .showLegend(false) + .forceX([0, 100]); + chart.tooltipContent(function(graph) { + return '<p>' + graph.point.class + '</p>'; + }); + + chart.xAxis.axisLabel('Code Coverage (in percent)'); + chart.yAxis.axisLabel('Cyclomatic Complexity'); + + d3.select('#classComplexity svg') + .datum(getComplexityData([[100,1,"<a href=\"source_with_ignore.php.html#11\">Foo<\/a>"],[100,1,"<a href=\"source_with_ignore.php.html#18\">Bar<\/a>"]], 'Class Complexity')) + .transition() + .duration(500) + .call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + nv.addGraph(function() { + var chart = nv.models.scatterChart() + .showDistX(true) + .showDistY(true) + .showLegend(false) + .forceX([0, 100]); + chart.tooltipContent(function(graph) { + return '<p>' + graph.point.class + '</p>'; + }); + + chart.xAxis.axisLabel('Code Coverage (in percent)'); + chart.yAxis.axisLabel('Method Complexity'); + + d3.select('#methodComplexity svg') + .datum(getComplexityData([[100,1,"<a href=\"source_with_ignore.php.html#13\">Foo::bar<\/a>"],[100,1,"<a href=\"source_with_ignore.php.html#23\">Bar::foo<\/a>"]], 'Method Complexity')) + .transition() + .duration(500) + .call(chart); + + nv.utils.windowResize(chart.update); + + return chart; + }); + + function getComplexityData(data, label) { + var values = []; + $.each(data, function(key) { + var value = Math.round(data[key][0]*100) / 100; + values.push({ + x: value, + y: data[key][1], + class: data[key][2], + size: 0.05, + shape: 'diamond' + }); + }); + + return [ + { + key: label, + values: values, + color: "#4572A7" + } + ]; + } +}); + </script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/index.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/index.html new file mode 100644 index 0000000..78b8ef3 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/index.html @@ -0,0 +1,99 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Code Coverage for %s</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li class="active">%s</li> + <li>(<a href="dashboard.html">Dashboard</a>)</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <table class="table table-bordered"> + <thead> + <tr> + <td> </td> + <td colspan="9"><div align="center"><strong>Code Coverage</strong></div></td> + </tr> + <tr> + <td> </td> + <td colspan="3"><div align="center"><strong>Lines</strong></div></td> + <td colspan="3"><div align="center"><strong>Functions and Methods</strong></div></td> + <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td> + </tr> + </thead> + <tbody> + <tr> + <td class="danger">Total</td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">1 / 2</div></td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + </tr> + + <tr> + <td class="danger"><span class="glyphicon glyphicon-file"></span> <a href="source_with_ignore.php.html">source_with_ignore.php</a></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">1 / 2</div></td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + </tr> + + + </tbody> + </table> + <footer> + <hr/> + <h4>Legend</h4> + <p> + <span class="danger"><strong>Low</strong>: 0% to 50%</span> + <span class="warning"><strong>Medium</strong>: 50% to 90%</span> + <span class="success"><strong>High</strong>: 90% to 100%</span> + </p> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html new file mode 100644 index 0000000..12effe1 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html @@ -0,0 +1,234 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <title>Code Coverage for %s</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/style.css" rel="stylesheet"> + <!--[if lt IE 9]> + <script src="js/html5shiv.min.js"></script> + <script src="js/respond.min.js"></script> + <![endif]--> + </head> + <body> + <header> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <ol class="breadcrumb"> + <li><a href="index.html">%s</a></li> + <li class="active">source_with_ignore.php</li> + + </ol> + </div> + </div> + </div> + </header> + <div class="container"> + <table class="table table-bordered"> + <thead> + <tr> + <td> </td> + <td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td> + </tr> + <tr> + <td> </td> + <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td> + <td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td> + <td colspan="3"><div align="center"><strong>Lines</strong></div></td> + </tr> + </thead> + <tbody> + <tr> + <td class="">Total</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + <td class=" small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td> + <td class="danger big"> <div class="progress"> + <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50.00" aria-valuemin="0" aria-valuemax="100" style="width: 50.00%"> + <span class="sr-only">50.00% covered (danger)</span> + </div> + </div> +</td> + <td class="danger small"><div align="right">50.00%</div></td> + <td class="danger small"><div align="right">1 / 2</div></td> + </tr> + + <tr> + <td class="success" colspan="4"><a href="#28"><abbr title="baz()">baz</abbr></a></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">0</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + </tr> + + <tr> + <td class="">Foo</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + </tr> + + <tr> + <td class="success" colspan="4"> <a href="#13"><abbr title="bar()">bar</abbr></a></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + </tr> + + <tr> + <td class="">Bar</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + </tr> + + <tr> + <td class="success" colspan="4"> <a href="#23"><abbr title="foo()">foo</abbr></a></td> + <td class="success big"> <div class="progress"> + <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%"> + <span class="sr-only">100.00% covered (success)</span> + </div> + </div> +</td> + <td class="success small"><div align="right">100.00%</div></td> + <td class="success small"><div align="right">1 / 1</div></td> + <td class="success small">1</td> + <td class=" big"></td> + <td class=" small"><div align="right">n/a</div></td> + <td class=" small"><div align="right">0 / 0</div></td> + </tr> + + + </tbody> + </table> + <table id="code" class="table table-borderless table-condensed"> + <tbody> + <tr><td><div align="right"><a name="1"></a><a href="#1">1</a></div></td><td class="codeLine"><span class="default"><?php</span></td></tr> + <tr class="covered-by-large-tests popin" data-title="1 test covers line 2" data-content="<ul><li class="covered-by-large-tests">FileWithIgnoredLines</li></ul>" data-placement="bottom" data-html="true"><td><div align="right"><a name="2"></a><a href="#2">2</a></div></td><td class="codeLine"><span class="keyword">if</span><span class="default"> </span><span class="keyword">(</span><span class="default">$neverHappens</span><span class="keyword">)</span><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="3"></a><a href="#3">3</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// @codeCoverageIgnoreStart</span></td></tr> + <tr><td><div align="right"><a name="4"></a><a href="#4">4</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">print</span><span class="default"> </span><span class="default">'*'</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="5"></a><a href="#5">5</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">// @codeCoverageIgnoreEnd</span></td></tr> + <tr class="danger"><td><div align="right"><a name="6"></a><a href="#6">6</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="7"></a><a href="#7">7</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="8"></a><a href="#8">8</a></div></td><td class="codeLine"><span class="comment">/**</span></td></tr> + <tr><td><div align="right"><a name="9"></a><a href="#9">9</a></div></td><td class="codeLine"><span class="comment"> * @codeCoverageIgnore</span></td></tr> + <tr><td><div align="right"><a name="10"></a><a href="#10">10</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr> + <tr><td><div align="right"><a name="11"></a><a href="#11">11</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">Foo</span></td></tr> + <tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">bar</span><span class="keyword">(</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="keyword">class</span><span class="default"> </span><span class="default">Bar</span></td></tr> + <tr><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default"> </span><span class="comment">/**</span></td></tr> + <tr><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="comment"> * @codeCoverageIgnore</span></td></tr> + <tr><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="comment"> */</span></td></tr> + <tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">foo</span><span class="keyword">(</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="25"></a><a href="#25">25</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="26"></a><a href="#26">26</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="27"></a><a href="#27">27</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="28"></a><a href="#28">28</a></div></td><td class="codeLine"><span class="keyword">function</span><span class="default"> </span><span class="default">baz</span><span class="keyword">(</span><span class="keyword">)</span></td></tr> + <tr><td><div align="right"><a name="29"></a><a href="#29">29</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="30"></a><a href="#30">30</a></div></td><td class="codeLine"><span class="default"> </span><span class="default">print</span><span class="default"> </span><span class="default">'*'</span><span class="keyword">;</span><span class="default"> </span><span class="comment">// @codeCoverageIgnore</span></td></tr> + <tr><td><div align="right"><a name="31"></a><a href="#31">31</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr> + <tr><td><div align="right"><a name="32"></a><a href="#32">32</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="33"></a><a href="#33">33</a></div></td><td class="codeLine"><span class="keyword">interface</span><span class="default"> </span><span class="default">Bor</span></td></tr> + <tr><td><div align="right"><a name="34"></a><a href="#34">34</a></div></td><td class="codeLine"><span class="keyword">{</span></td></tr> + <tr><td><div align="right"><a name="35"></a><a href="#35">35</a></div></td><td class="codeLine"><span class="default"> </span><span class="keyword">public</span><span class="default"> </span><span class="keyword">function</span><span class="default"> </span><span class="default">foo</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">;</span></td></tr> + <tr><td><div align="right"><a name="36"></a><a href="#36">36</a></div></td><td class="codeLine"></td></tr> + <tr><td><div align="right"><a name="37"></a><a href="#37">37</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr> + + </tbody> + </table> + <footer> + <hr/> + <h4>Legend</h4> + <p> + <span class="success"><strong>Executed</strong></span> + <span class="danger"><strong>Not Executed</strong></span> + <span class="warning"><strong>Dead Code</strong></span> + </p> + <p> + <small>Generated by <a href="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage %s</a> using <a href="%s" target="_top">%s</a> at %s.</small> + </p> + <a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a> + </footer> + </div> + <script src="js/jquery.min.js" type="text/javascript"></script> + <script src="js/bootstrap.min.js" type="text/javascript"></script> + <script src="js/holder.min.js" type="text/javascript"></script> + <script type="text/javascript"> + $(function() { + var $window = $(window) + , $top_link = $('#toplink') + , $body = $('body, html') + , offset = $('#code').offset().top; + + $top_link.hide().click(function(event) { + event.preventDefault(); + $body.animate({scrollTop:0}, 800); + }); + + $window.scroll(function() { + if($window.scrollTop() > offset) { + $top_link.fadeIn(); + } else { + $top_link.fadeOut(); + } + }).scroll(); + + $('.popin').popover({trigger: 'hover'}); + }); + </script> + </body> +</html> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForBankAccount/BankAccount.php.xml b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForBankAccount/BankAccount.php.xml new file mode 100644 index 0000000..d5c5d2e --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForBankAccount/BankAccount.php.xml @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<phpunit xmlns="http://schema.phpunit.de/coverage/1.0"> + <file name="BankAccount.php"> + <totals> + <lines total="33" comments="0" code="33" executable="10" executed="5" percent="50.00%"/> + <methods count="4" tested="3" percent="75.00%"/> + <functions count="0" tested="0" percent=""/> + <classes count="1" tested="0" percent="0.00%"/> + <traits count="0" tested="0" percent=""/> + </totals> + <class name="BankAccount" start="2" executable="10" executed="5" crap="8.12"> + <package full="" name="" sub="" category=""/> + <namespace name=""/> + <method name="getBalance" signature="getBalance()" start="6" end="9" crap="1" executable="1" executed="1" coverage="100"/> + <method name="setBalance" signature="setBalance($balance)" start="11" end="18" crap="6" executable="5" executed="0" coverage="0"/> + <method name="depositMoney" signature="depositMoney($balance)" start="20" end="25" crap="1" executable="2" executed="2" coverage="100"/> + <method name="withdrawMoney" signature="withdrawMoney($balance)" start="27" end="32" crap="1" executable="2" executed="2" coverage="100"/> + </class> + <coverage> + <line nr="8"> + <covered by="BankAccountTest::testBalanceIsInitiallyZero"/> + <covered by="BankAccountTest::testDepositWithdrawMoney"/> + </line> + <line nr="22"> + <covered by="BankAccountTest::testBalanceCannotBecomeNegative2"/> + <covered by="BankAccountTest::testDepositWithdrawMoney"/> + </line> + <line nr="24"> + <covered by="BankAccountTest::testDepositWithdrawMoney"/> + </line> + <line nr="29"> + <covered by="BankAccountTest::testBalanceCannotBecomeNegative"/> + <covered by="BankAccountTest::testDepositWithdrawMoney"/> + </line> + <line nr="31"> + <covered by="BankAccountTest::testDepositWithdrawMoney"/> + </line> + </coverage> + </file> +</phpunit> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForBankAccount/index.xml b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForBankAccount/index.xml new file mode 100644 index 0000000..27fc5b4 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForBankAccount/index.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<phpunit xmlns="http://schema.phpunit.de/coverage/1.0"> + <project name="%s"> + <tests> + <test name="BankAccountTest::testBalanceIsInitiallyZero" size="unknown" result="0" status="PASSED"/> + <test name="BankAccountTest::testBalanceCannotBecomeNegative" size="unknown" result="0" status="PASSED"/> + <test name="BankAccountTest::testBalanceCannotBecomeNegative2" size="unknown" result="0" status="PASSED"/> + <test name="BankAccountTest::testDepositWithdrawMoney" size="unknown" result="0" status="PASSED"/> + </tests> + <directory name="%s"> + <totals> + <lines total="33" comments="0" code="33" executable="10" executed="5" percent="50.00%"/> + <methods count="4" tested="3" percent="75.00%"/> + <functions count="0" tested="0" percent=""/> + <classes count="1" tested="0" percent="0.00%"/> + <traits count="0" tested="0" percent=""/> + </totals> + <file name="BankAccount.php" href="BankAccount.php.xml"> + <totals> + <lines total="33" comments="0" code="33" executable="10" executed="5" percent="50.00%"/> + <methods count="4" tested="3" percent="75.00%"/> + <functions count="0" tested="0" percent=""/> + <classes count="1" tested="0" percent="0.00%"/> + <traits count="0" tested="0" percent=""/> + </totals> + </file> + </directory> + </project> +</phpunit> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/index.xml b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/index.xml new file mode 100644 index 0000000..6f9cd19 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/index.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<phpunit xmlns="http://schema.phpunit.de/coverage/1.0"> + <project name="%s"> + <tests> + <test name="ClassWithAnonymousFunction" size="unknown" result="0" status="PASSED"/> + </tests> + <directory name="%s"> + <totals> + <lines total="19" comments="2" code="17" executable="8" executed="7" percent="87.50%"/> + <methods count="2" tested="1" percent="50.00%"/> + <functions count="0" tested="0" percent=""/> + <classes count="1" tested="0" percent="0.00%"/> + <traits count="0" tested="0" percent=""/> + </totals> + <file name="source_with_class_and_anonymous_function.php" href="source_with_class_and_anonymous_function.php.xml"> + <totals> + <lines total="19" comments="2" code="17" executable="8" executed="7" percent="87.50%"/> + <methods count="2" tested="1" percent="50.00%"/> + <functions count="0" tested="0" percent=""/> + <classes count="1" tested="0" percent="0.00%"/> + <traits count="0" tested="0" percent=""/> + </totals> + </file> + </directory> + </project> +</phpunit> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.xml b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.xml new file mode 100644 index 0000000..d424524 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.xml @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<phpunit xmlns="http://schema.phpunit.de/coverage/1.0"> + <file name="source_with_class_and_anonymous_function.php"> + <totals> + <lines total="19" comments="2" code="17" executable="8" executed="7" percent="87.50%"/> + <methods count="2" tested="1" percent="50.00%"/> + <functions count="0" tested="0" percent=""/> + <classes count="1" tested="0" percent="0.00%"/> + <traits count="0" tested="0" percent=""/> + </totals> + <class name="CoveredClassWithAnonymousFunctionInStaticMethod" start="3" executable="8" executed="7" crap="2.01"> + <package full="" name="" sub="" category=""/> + <namespace name=""/> + <method name="runAnonymous" signature="runAnonymous()" start="5" end="18" crap="1.04" executable="3" executed="2" coverage="66.666666666667"/> + <method name="anonymous function" signature="anonymous function (&$val, $key)" start="11" end="13" crap="1" executable="2" executed="2" coverage="100"/> + </class> + <coverage> + <line nr="7"> + <covered by="ClassWithAnonymousFunction"/> + </line> + <line nr="9"> + <covered by="ClassWithAnonymousFunction"/> + </line> + <line nr="12"> + <covered by="ClassWithAnonymousFunction"/> + </line> + <line nr="13"> + <covered by="ClassWithAnonymousFunction"/> + </line> + <line nr="14"> + <covered by="ClassWithAnonymousFunction"/> + </line> + <line nr="17"> + <covered by="ClassWithAnonymousFunction"/> + </line> + <line nr="18"> + <covered by="ClassWithAnonymousFunction"/> + </line> + </coverage> + </file> +</phpunit> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/index.xml b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/index.xml new file mode 100644 index 0000000..436081a --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/index.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<phpunit xmlns="http://schema.phpunit.de/coverage/1.0"> + <project name="%s"> + <tests> + <test name="FileWithIgnoredLines" size="unknown" result="0" status="PASSED"/> + </tests> + <directory name="%s"> + <totals> + <lines total="37" comments="12" code="25" executable="2" executed="1" percent="50.00%"/> + <methods count="0" tested="0" percent=""/> + <functions count="1" tested="0" percent="0.00%"/> + <classes count="0" tested="0" percent=""/> + <traits count="0" tested="0" percent=""/> + </totals> + <file name="source_with_ignore.php" href="source_with_ignore.php.xml"> + <totals> + <lines total="37" comments="12" code="25" executable="2" executed="1" percent="50.00%"/> + <methods count="0" tested="0" percent=""/> + <functions count="1" tested="0" percent="0.00%"/> + <classes count="0" tested="0" percent=""/> + <traits count="0" tested="0" percent=""/> + </totals> + </file> + </directory> + </project> +</phpunit> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/source_with_ignore.php.xml b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/source_with_ignore.php.xml new file mode 100644 index 0000000..f5eec7d --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/source_with_ignore.php.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<phpunit xmlns="http://schema.phpunit.de/coverage/1.0"> + <file name="source_with_ignore.php"> + <totals> + <lines total="37" comments="12" code="25" executable="2" executed="1" percent="50.00%"/> + <methods count="0" tested="0" percent=""/> + <functions count="1" tested="0" percent="0.00%"/> + <classes count="0" tested="0" percent=""/> + <traits count="0" tested="0" percent=""/> + </totals> + <class name="Foo" start="11" executable="0" executed="0" crap="1"> + <package full="" name="" sub="" category=""/> + <namespace name=""/> + <method name="bar" signature="bar()" start="13" end="15" crap="1" executable="0" executed="0" coverage="100"/> + </class> + <class name="Bar" start="18" executable="0" executed="0" crap="1"> + <package full="" name="" sub="" category=""/> + <namespace name=""/> + <method name="foo" signature="foo()" start="23" end="25" crap="1" executable="0" executed="0" coverage="100"/> + </class> + <function name="baz" signature="baz()" start="28" crap="0" executable="0" executed="0" coverage="0"/> + <coverage> + <line nr="2"> + <covered by="FileWithIgnoredLines"/> + </line> + </coverage> + </file> +</phpunit> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-clover.xml b/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-clover.xml new file mode 100644 index 0000000..d6a8b40 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-clover.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<coverage generated="%i"> + <project timestamp="%i"> + <file name="%s/source_with_class_and_anonymous_function.php"> + <class name="CoveredClassWithAnonymousFunctionInStaticMethod" namespace="global"> + <metrics complexity="2" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="4" elements="7" coveredelements="5"/> + </class> + <line num="5" type="method" name="runAnonymous" visibility="public" complexity="1" crap="1.04" count="1"/> + <line num="7" type="stmt" count="1"/> + <line num="9" type="stmt" count="1"/> + <line num="10" type="stmt" count="0"/> + <line num="11" type="method" name="anonymous function" complexity="1" crap="1" count="1"/> + <line num="12" type="stmt" count="1"/> + <line num="13" type="stmt" count="1"/> + <line num="14" type="stmt" count="1"/> + <line num="17" type="stmt" count="1"/> + <line num="18" type="stmt" count="1"/> + <metrics loc="19" ncloc="17" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="7" elements="10" coveredelements="8"/> + </file> + <metrics files="1" loc="19" ncloc="17" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="7" elements="10" coveredelements="8"/> + </project> +</coverage> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-crap4j.xml b/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-crap4j.xml new file mode 100644 index 0000000..696496d --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-crap4j.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<crap_result> + <project>CoverageForClassWithAnonymousFunction</project> + <timestamp>%s</timestamp> + <stats> + <name>Method Crap Stats</name> + <methodCount>2</methodCount> + <crapMethodCount>0</crapMethodCount> + <crapLoad>0</crapLoad> + <totalCrap>2.04</totalCrap> + <crapMethodPercent>0</crapMethodPercent> + </stats> + <methods> + <method> + <package>global</package> + <className>CoveredClassWithAnonymousFunctionInStaticMethod</className> + <methodName>runAnonymous</methodName> + <methodSignature>runAnonymous()</methodSignature> + <fullMethod>runAnonymous()</fullMethod> + <crap>1.04</crap> + <complexity>1</complexity> + <coverage>66.67</coverage> + <crapLoad>0</crapLoad> + </method> + <method> + <package>global</package> + <className>CoveredClassWithAnonymousFunctionInStaticMethod</className> + <methodName>anonymous function</methodName> + <methodSignature>anonymous function (&$val, $key)</methodSignature> + <fullMethod>anonymous function (&$val, $key)</fullMethod> + <crap>1</crap> + <complexity>1</complexity> + <coverage>100</coverage> + <crapLoad>0</crapLoad> + </method> + </methods> +</crap_result> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-text.txt b/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-text.txt new file mode 100644 index 0000000..0eb257e --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-text.txt @@ -0,0 +1,12 @@ + + +Code Coverage Report: + %s + + Summary: + Classes: 0.00% (0/1) + Methods: 50.00% (1/2) + Lines: 87.50% (7/8) + +CoveredClassWithAnonymousFunctionInStaticMethod + Methods: 50.00% ( 1/ 2) Lines: 80.00% ( 4/ 5) diff --git a/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-clover.xml b/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-clover.xml new file mode 100644 index 0000000..a35cc4b --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-clover.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<coverage generated="%i"> + <project timestamp="%i"> + <file name="%s/source_with_ignore.php"> + <class name="Foo" namespace="global"> + <metrics complexity="1" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/> + </class> + <class name="Bar" namespace="global"> + <metrics complexity="1" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/> + </class> + <line num="2" type="stmt" count="1"/> + <line num="6" type="stmt" count="0"/> + <metrics loc="37" ncloc="25" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="2" coveredelements="1"/> + </file> + <metrics files="1" loc="37" ncloc="25" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="2" coveredelements="1"/> + </project> +</coverage> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-crap4j.xml b/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-crap4j.xml new file mode 100644 index 0000000..2607b59 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-crap4j.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<crap_result> + <project>CoverageForFileWithIgnoredLines</project> + <timestamp>%s</timestamp> + <stats> + <name>Method Crap Stats</name> + <methodCount>2</methodCount> + <crapMethodCount>0</crapMethodCount> + <crapLoad>0</crapLoad> + <totalCrap>2</totalCrap> + <crapMethodPercent>0</crapMethodPercent> + </stats> + <methods> + <method> + <package>global</package> + <className>Foo</className> + <methodName>bar</methodName> + <methodSignature>bar()</methodSignature> + <fullMethod>bar()</fullMethod> + <crap>1</crap> + <complexity>1</complexity> + <coverage>100</coverage> + <crapLoad>0</crapLoad> + </method> + <method> + <package>global</package> + <className>Bar</className> + <methodName>foo</methodName> + <methodSignature>foo()</methodSignature> + <fullMethod>foo()</fullMethod> + <crap>1</crap> + <complexity>1</complexity> + <coverage>100</coverage> + <crapLoad>0</crapLoad> + </method> + </methods> +</crap_result> diff --git a/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-text.txt b/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-text.txt new file mode 100644 index 0000000..6e8e149 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-text.txt @@ -0,0 +1,10 @@ + + +Code Coverage Report:%w + %s +%w + Summary:%w + Classes: (0/0) + Methods: (0/0) + Lines: 50.00% (1/2) + diff --git a/vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php b/vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php new file mode 100644 index 0000000..72aa938 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php @@ -0,0 +1,19 @@ +<?php + +class CoveredClassWithAnonymousFunctionInStaticMethod +{ + public static function runAnonymous() + { + $filter = ['abc124', 'abc123', '123']; + + array_walk( + $filter, + function (&$val, $key) { + $val = preg_replace('|[^0-9]|', '', $val); + } + ); + + // Should be covered + $extravar = true; + } +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/source_with_ignore.php b/vendor/phpunit/php-code-coverage/tests/_files/source_with_ignore.php new file mode 100644 index 0000000..dd9aa12 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/source_with_ignore.php @@ -0,0 +1,37 @@ +<?php +if ($neverHappens) { + // @codeCoverageIgnoreStart + print '*'; + // @codeCoverageIgnoreEnd +} + +/** + * @codeCoverageIgnore + */ +class Foo +{ + public function bar() + { + } +} + +class Bar +{ + /** + * @codeCoverageIgnore + */ + public function foo() + { + } +} + +function baz() +{ + print '*'; // @codeCoverageIgnore +} + +interface Bor +{ + public function foo(); + +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/source_with_namespace.php b/vendor/phpunit/php-code-coverage/tests/_files/source_with_namespace.php new file mode 100644 index 0000000..fb9dfa3 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/source_with_namespace.php @@ -0,0 +1,20 @@ +<?php +namespace bar\baz; + +/** + * Represents foo. + */ +class source_with_namespace +{ +} + +/** + * @param mixed $bar + */ +function &foo($bar) +{ + $baz = function () {}; + $a = true ? true : false; + $b = "{$a}"; + $c = "${b}"; +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php b/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php new file mode 100644 index 0000000..19dd4cd --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php @@ -0,0 +1,36 @@ +<?php + +/** Docblock */ +interface Foo +{ + public function bar(); +} + +class Foo +{ + public function bar() + { + } +} + +function baz() +{ + // a one-line comment + print '*'; // a one-line comment + + /* a one-line comment */ + print '*'; /* a one-line comment */ + + /* a one-line comment + */ + print '*'; /* a one-line comment + */ + + print '*'; // @codeCoverageIgnore + + print '*'; // @codeCoverageIgnoreStart + print '*'; + print '*'; // @codeCoverageIgnoreEnd + + print '*'; +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php b/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php new file mode 100644 index 0000000..be4e836 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php @@ -0,0 +1,4 @@ +<?php +if ($neverHappens) { + print '*'; +} diff --git a/vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php b/vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php new file mode 100644 index 0000000..a291e74 --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php @@ -0,0 +1,18 @@ +<?php +/** + * Represents foo. + */ +class Foo +{ +} + +/** + * @param mixed $bar + */ +function &foo($bar) +{ + $baz = function () {}; + $a = true ? true : false; + $b = "{$a}"; + $c = "${b}"; +} |