public function testUseSymfonyParserToParseFile()
{
$file = self::$dir . '/basic.yml';
$fileContent = <<<'EOF'
#
# This file is part of the Alice package.
#
# (c) Nelmio <[email protected]>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
Nelmio\Alice\Model\User:
user0:
fullname: John Doe
EOF;
$expected = [new \stdClass()];
$symfonyYamlParserProphecy = $this->prophesize(SymfonyYamlParser::class);
$symfonyYamlParserProphecy->parse($fileContent)->willReturn($expected);
/* @var SymfonyYamlParser $symfonyYamlParser */
$symfonyYamlParser = $symfonyYamlParserProphecy->reveal();
$parser = new YamlParser($symfonyYamlParser);
$actual = $parser->parse($file);
$this->assertSame($expected, $actual);
$symfonyYamlParserProphecy->parse(Argument::any())->shouldBeCalledTimes(1);
}