示例#1
0
文件: File.php 项目: ecomdev/compiler
 /**
  * Loads a file via parser
  *
  * @return ContainerInterface
  */
 public function load()
 {
     return $this->parser->parse(file_get_contents($this->file));
 }
示例#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);
 }
示例#3
0
 /**
  * Loads data via parser
  *
  * @return Statement\ContainerInterface
  */
 public function load()
 {
     return $this->parser->parse($this->string);
 }