class MockFileFinderTest

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php \Drupal\Tests\Component\Annotation\MockFileFinderTest
  2. 10 core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php \Drupal\Tests\Component\Annotation\MockFileFinderTest
  3. 11.x 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\Annotation
View 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

Title Sort descending Modifiers Object type Summary
MockFileFinderTest::testFindFile public function @covers ::create
@covers ::findFile

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.