MockFileFinderTest.php in Drupal 10
File
core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php
View source
<?php
namespace Drupal\Tests\Component\Annotation;
use Drupal\Component\Annotation\Reflection\MockFileFinder;
use PHPUnit\Framework\TestCase;
class MockFileFinderTest extends TestCase {
public function testFindFile() {
$tmp = MockFileFinder::create('testfilename.txt');
$this
->assertEquals('testfilename.txt', $tmp
->findFile('n/a'));
$this
->assertEquals('testfilename.txt', $tmp
->findFile('SomeClass'));
}
}