view 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
line wrap: on
line source
<?php

namespace Drupal\Tests\Component\Annotation;

use Drupal\Component\Annotation\Reflection\MockFileFinder;
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder
 * @group Annotation
 */
class MockFileFinderTest extends TestCase {

  /**
   * @covers ::create
   * @covers ::findFile
   */
  public function testFindFile() {
    $tmp = MockFileFinder::create('testfilename.txt');
    $this->assertEquals('testfilename.txt', $tmp->findFile('n/a'));
    $this->assertEquals('testfilename.txt', $tmp->findFile('someclass'));
  }

}