public function PHP_CodeCoverageTest::testConstructor2 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php \PHP_CodeCoverageTest::testConstructor2()
@covers PHP_CodeCoverage::__construct @covers PHP_CodeCoverage::filter
File
- vendor/
phpunit/ php-code-coverage/ tests/ PHP/ CodeCoverageTest.php, line 63
Class
- PHP_CodeCoverageTest
- Tests for the PHP_CodeCoverage class.
Code
public function testConstructor2() {
$filter = new PHP_CodeCoverage_Filter();
$coverage = new PHP_CodeCoverage(null, $filter);
$this
->assertAttributeInstanceOf('PHP_CodeCoverage_Driver_Xdebug', 'driver', $coverage);
$this
->assertSame($filter, $coverage
->filter());
}