| 1 | <?php |
||
| 18 | final class FileFixtureScope extends Scope |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \holyshared\fixture\FileFixture |
||
| 23 | */ |
||
| 24 | private $loader; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param \holyshared\fixture\FileFixture $loader |
||
| 28 | */ |
||
| 29 | public function __construct(FileFixture $loader) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Load the fixture file content by name |
||
| 36 | * |
||
| 37 | * @param string $name |
||
| 38 | * @param array $arguments |
||
| 39 | * @return string content of fixture |
||
| 40 | */ |
||
| 41 | public function loadFixture($name, array $arguments = []) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get the Path from the name of the fixture |
||
| 48 | * |
||
| 49 | * @param string $name |
||
| 50 | * @return string the path of fixture |
||
| 51 | */ |
||
| 52 | public function fixturePath($name) |
||
| 56 | |||
| 57 | } |
||
| 58 |