1<?php 2/** 3 * @coversDefaultClass \Foo\CoveredClass 4 */ 5class NamespaceCoverageCoversClassTest extends PHPUnit_Framework_TestCase 6{ 7 /** 8 * @covers ::privateMethod 9 * @covers ::protectedMethod 10 * @covers ::publicMethod 11 * @covers \Foo\CoveredParentClass::privateMethod 12 * @covers \Foo\CoveredParentClass::protectedMethod 13 * @covers \Foo\CoveredParentClass::publicMethod 14 */ 15 public function testSomething() 16 { 17 $o = new Foo\CoveredClass; 18 $o->publicMethod(); 19 } 20} 21