MockFileFinder.php in Drupal 8
File
core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php
View source
<?php
namespace Drupal\Component\Annotation\Reflection;
use Doctrine\Common\Reflection\ClassFinderInterface;
class MockFileFinder implements ClassFinderInterface {
protected $filename;
public function findFile($class) {
return $this->filename;
}
public static function create($filename) {
$object = new static();
$object->filename = $filename;
return $object;
}
}
Classes
Name |
Description |
MockFileFinder |
Defines a mock file finder that only returns a single filename. |