Mercurial > hg > isophonics-drupal-site
annotate core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
rev | line source |
---|---|
Chris@14 | 1 <?php |
Chris@14 | 2 |
Chris@14 | 3 namespace Drupal\Tests\Component\Annotation; |
Chris@14 | 4 |
Chris@14 | 5 use Drupal\Component\Annotation\Reflection\MockFileFinder; |
Chris@14 | 6 use PHPUnit\Framework\TestCase; |
Chris@14 | 7 |
Chris@14 | 8 /** |
Chris@14 | 9 * @coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder |
Chris@14 | 10 * @group Annotation |
Chris@14 | 11 */ |
Chris@14 | 12 class MockFileFinderTest extends TestCase { |
Chris@14 | 13 |
Chris@14 | 14 /** |
Chris@14 | 15 * @covers ::create |
Chris@14 | 16 * @covers ::findFile |
Chris@14 | 17 */ |
Chris@14 | 18 public function testFindFile() { |
Chris@14 | 19 $tmp = MockFileFinder::create('testfilename.txt'); |
Chris@14 | 20 $this->assertEquals('testfilename.txt', $tmp->findFile('n/a')); |
Chris@14 | 21 $this->assertEquals('testfilename.txt', $tmp->findFile('someclass')); |
Chris@14 | 22 } |
Chris@14 | 23 |
Chris@14 | 24 } |