MockFileFinderTest.php 594 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Drupal\Tests\Component\Annotation;
  3. use Drupal\Component\Annotation\Reflection\MockFileFinder;
  4. use PHPUnit\Framework\TestCase;
  5. /**
  6. * @coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder
  7. * @group Annotation
  8. */
  9. class MockFileFinderTest extends TestCase {
  10. /**
  11. * @covers ::create
  12. * @covers ::findFile
  13. */
  14. public function testFindFile() {
  15. $tmp = MockFileFinder::create('testfilename.txt');
  16. $this->assertEquals('testfilename.txt', $tmp->findFile('n/a'));
  17. $this->assertEquals('testfilename.txt', $tmp->findFile('someclass'));
  18. }
  19. }