Nelmio\Alice\Parser\IncludeProcessor\DefaultIncludeProcessorTest::testThrowsAnExceptionIfNoIncludeStatementFound PHP Method

testThrowsAnExceptionIfNoIncludeStatementFound() public method

    public function testThrowsAnExceptionIfNoIncludeStatementFound()
    {
        $parserProphecy = $this->prophesize(ParserInterface::class);
        $parserProphecy->parse(Argument::any())->shouldNotBeCalled();
        /* @var ParserInterface $parser */
        $parser = $parserProphecy->reveal();
        $fileLocatorProphecy = $this->prophesize(FileLocatorInterface::class);
        $fileLocatorProphecy->locate(Argument::any())->shouldNotBeCalled();
        /* @var FileLocatorInterface $fileLocator */
        $fileLocator = $fileLocatorProphecy->reveal();
        $processor = new DefaultIncludeProcessor($fileLocator);
        $processor->process($parser, 'dummy.php', []);
    }