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