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