Dumplie\Metadata\Tests\Integration\Generic\FloatTypeTestCase::setUp PHP Метод

setUp() публичный Метод

public setUp ( )
    public function setUp()
    {
        $this->storage = $this->createStorage();
        $hydrator = new DefaultHydrator($this->storage);
        $this->schemaBuilder = new Schema\Builder("float");
        $productSchema = new Schema\TypeSchema("test", ["without_default" => new FloatField(null, true), "with_default" => new FloatField(0.0)]);
        $this->schemaBuilder->addType($productSchema);
        $this->registry = new MetadataAccessRegistry($this->storage, $this->schemaBuilder, $hydrator);
        $this->storage->alter($this->schemaBuilder->build());
    }