Esempio n. 1
0
 /**
  * Loads a file via parser
  *
  * @return ContainerInterface
  */
 public function load()
 {
     return $this->parser->parse(file_get_contents($this->file));
 }
Esempio n. 2
0
 function it_calls_parser_on_loading_the_data(ContainerInterface $container)
 {
     $this->parser->parse('some_file_content1')->shouldBeCalled()->willReturn($container);
     $this->load()->shouldReturn($container);
 }
Esempio n. 3
0
 /**
  * Loads data via parser
  *
  * @return Statement\ContainerInterface
  */
 public function load()
 {
     return $this->parser->parse($this->string);
 }