public function getEditor(PropertyModel $property) { $this->setProperty($property); if ($this->editor === null) { $this->editor = new Editor($this); } return $this->editor; }
/** * Test * * @return void */ public function testGetEditor() { $this->assertInstanceOf('Datatypes\\Mixed\\Editor', $this->object->getEditor($this->property)); }