1 | <?php |
||
18 | class FileFixture implements Loader |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var \holyshared\fixture\Container |
||
23 | */ |
||
24 | private $loaders; |
||
25 | |||
26 | /** |
||
27 | * @var \holyshared\fixture\Container |
||
28 | */ |
||
29 | private $fixtures; |
||
30 | |||
31 | /** |
||
32 | * Create a new FileFixture |
||
33 | * |
||
34 | * @param \holyshared\fixture\Container $fixtures |
||
35 | * @param \holyshared\fixture\Container $loaders |
||
36 | */ |
||
37 | public function __construct(Container $fixtures, Container $loaders) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function load($name, array $arguments = []) |
||
56 | |||
57 | /** |
||
58 | * Get the Path from the name of the fixture |
||
59 | * |
||
60 | * <code> |
||
61 | * $path = $fixture->resolveName('text:ok'); //Return absolute path of fixture |
||
62 | * </code> |
||
63 | * |
||
64 | * @param string $name name of fixture |
||
65 | * @return string path of fixture |
||
66 | */ |
||
67 | public function resolveName($name) |
||
73 | |||
74 | } |
||
75 |