class MockFileFinderTest in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php \Drupal\Tests\Component\Annotation\MockFileFinderTest
- 10 core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php \Drupal\Tests\Component\Annotation\MockFileFinderTest
@coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder @group Annotation
Hierarchy
- class \Drupal\Tests\Component\Annotation\MockFileFinderTest extends \PHPUnit\Framework\TestCase
Expanded class hierarchy of MockFileFinderTest
File
- core/tests/ Drupal/ Tests/ Component/ Annotation/ MockFileFinderTest.php, line 12 
Namespace
Drupal\Tests\Component\AnnotationView source
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'));
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| MockFileFinderTest:: | public | function | @covers ::create @covers ::findFile | 
