annotate 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
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 }