Mercurial > hg > cmmr2012-drupal-site
comparison core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Tests\Component\Annotation; | |
4 | |
5 use Drupal\Component\Annotation\Reflection\MockFileFinder; | |
6 use PHPUnit\Framework\TestCase; | |
7 | |
8 /** | |
9 * @coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder | |
10 * @group Annotation | |
11 */ | |
12 class MockFileFinderTest extends TestCase { | |
13 | |
14 /** | |
15 * @covers ::create | |
16 * @covers ::findFile | |
17 */ | |
18 public function testFindFile() { | |
19 $tmp = MockFileFinder::create('testfilename.txt'); | |
20 $this->assertEquals('testfilename.txt', $tmp->findFile('n/a')); | |
21 $this->assertEquals('testfilename.txt', $tmp->findFile('someclass')); | |
22 } | |
23 | |
24 } |