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

testComposer() public method

public testComposer ( )
    public function testComposer()
    {
        $file = file_get_contents(__DIR__ . '/../../composer.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__, 'composer.json.schema'))));
        $validator = new Validator($json, $schema);
        $this->assertFalse($validator->fails());
    }