public function testGet() { $structure = new Structure(); $field = new Field('foo', Mapping::TYPE_STRING); $structure->add($field); $this->assertEquals($field, $structure->get('foo')); $this->assertNull($structure->get('bar')); }
public function testGet() { $structure = new Structure(); $field = new Field('foo', Mapping::TYPE_STRING); $structure->add($field); $this->assertEquals($field, $structure->get('foo')); $this->assertNull($structure->get('bar')); }