ApiPlatform\SchemaGenerator\Tests\AnnotationGenerator\ApiPlatformCoreAnnotationGeneratorTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $graph = new \EasyRdf_Graph();
        $myEnum = new \EasyRdf_Resource('http://schema.org/MyEnum', $graph);
        $myEnum->add('rdfs:subClassOf', ['type' => 'uri', 'value' => TypesGenerator::SCHEMA_ORG_ENUMERATION]);
        $this->generator = new ApiPlatformCoreAnnotationGenerator(new NullLogger(), [], [], [], ['Res' => ['resource' => new \EasyRdf_Resource('http://schema.org/Res', $graph), 'fields' => ['prop' => ['isCustom' => false], 'customProp' => ['isCustom' => true]]], 'MyEnum' => ['resource' => $myEnum]]);
    }