public function testLinkingProcessOnSchemaWithAlreadyDefinedTypes() { list($outline, $implementation) = $this->prepareLinker(false); /** @var SchemaOutline $outline */ /** @var Implementation $implementation */ $expectedSchema = new Schema(); $expectedSchema->registerType('string', new StringType())->registerType('boolean', new FloatType())->registerType('binary', new BinaryType()); $this->object->setSchema($expectedSchema); $result = $this->object->build($outline, $implementation); $this->assertEquals($expectedSchema, $result); }