No Description

NamespaceCoverageCoversClassTest.php 532B

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