/** * Test the creation of a simple schema with one field. */ public function testBuildSingleField() { $builder = new SchemaBuilder(); $schema = $builder->createFromArray(array('sometext' => array('_type' => 'text', 'size' => 4))); $this->assertCount(1, $schema->getFields()); $fields = $schema->getFields(); $field = $fields[0]; $this->assertInstanceOf('\\Binary\\Field\\FieldInterface', $field); $this->assertEquals('sometext', $field->getName()); }