Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: namespace PhpUnitCoverageTest\Tests; Chris@14: Chris@14: use PHPUnit\Framework\TestCase; Chris@14: Chris@14: class BarCovTest extends TestCase Chris@14: { Chris@14: public function testBarCov() Chris@14: { Chris@14: if (!class_exists('PhpUnitCoverageTest\FooCov')) { Chris@14: $this->markTestSkipped('This test is not part of the main Symfony test suite. It\'s here to test the CoverageListener.'); Chris@14: } Chris@14: Chris@14: $foo = new \PhpUnitCoverageTest\FooCov(); Chris@14: $bar = new \PhpUnitCoverageTest\BarCov($foo); Chris@14: Chris@14: $this->assertSame('bar', $bar->barZ()); Chris@14: } Chris@14: }