Google\Cloud\Tests\JsonFileTest::testManifest PHP Method

testManifest() public method

public testManifest ( )
    public function testManifest()
    {
        $file = file_get_contents(__DIR__ . '/../../docs/manifest.json');
        $json = json_decode($file);
        $this->assertEquals(JSON_ERROR_NONE, json_last_error());
        $deref = new Dereferencer();
        $schema = $deref->dereference(json_decode(file_get_contents(sprintf(self::SCHEMA_PATH, __DIR__, 'manifest.json.schema'))));
        $validator = new Validator($json, $schema);
        $this->assertFalse($validator->fails());
    }