/** @test */ public function shouldSetCorrectSourceUriOnSchemaParsers() { $schemaParser = $this->getMock('\\Raml\\Schema\\SchemaParserInterface'); $schemaParser->expects($this->any())->method('getCompatibleContentTypes')->willReturn(['application/json']); $schemaParser->expects($this->any())->method('setSourceUri')->withConsecutive(['file:' . __DIR__ . '/fixture/songs.json']); $parser = new \Raml\Parser([$schemaParser]); $parser->parse(__DIR__ . '/fixture/includeSchema.raml'); }