comparison core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
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 }