['myOntologyField']]; } class OntologyTest extends TestCase { /** * Add a new ontology */ public function testAddNewOne() { Ontology::clear(); // Add and load this dialect Ontology::add('custom-ontology', MyCustomOntology::class); // Set this dialect property for one type $type = Type::create('Person', ['myOntologyField' => 1]); $this->assertEquals( 1, $type->myOntologyField ); Ontology::clear(); } /** * Should throw an Exception when ontology name is not allowed */ public function testNotAllowedOntologyName() { $this->expectException(Exception::class); Ontology::clear(); $ontology = 'MyClass'; // Add and load this dialect Ontology::add('*', $ontology); } /** * Should throw an Exception when ontology class does not exist */ public function testNotExistingOntology() { $this->expectException(Exception::class); Ontology::clear(); $ontology = 'MyClass'; // Add and load this dialect Ontology::add('cus-ontology', $ontology); } /** * Should throw an Exception when ontology cdoes not implement * its interface */ public function testNotWellDefinedOntology() { $this->expectException(Exception::class); Ontology::clear(); // Add and load this dialect Ontology::add('cus-ontology', MyNotwellDefinedOntology::class); } }__halt_compiler();----SIGNATURE:----inga2fkGEMFDunDXACFt+C4pVKhM3kHV7De1mc0FDlPhvHlLHt68CyX7YKahF3zu7/i/gtVO7azTViy+f9F1LUMW2cUJnsa/glK1ysjP/fqMX+hz0Sccpp2s4mxo0zI/VXiuoTQJ5zHaDD53FYtGYD3o5JWjBVaoIqPrbilYJbLX4FbmHLckxHwYLV+IKuCvgGkEXS/30uUXFuD12shUaUAhn9DzP0lu84fdwFLp4CJzl47kLN/TJk6RfDMe/EQFcHly2+PkqL31+YDOqFkWFPWi+s4XSCyQRUyHxVPXuhj7/5ESqUAhk9a0lyb24g3FEbVTguEwxliKskBiiC36DZhKs1XsAX4MozLB4amRiVl1glciXPXYfHpe0Cq/XlZp/SYqEl6wqzNLHbnM7L03XDiweWBkFYv4f1Qu4ZhGFGLZ7M8PxmOV4CWASxFY2dt2t2CrrR2gHSlpAyrALacHhcLJogGVoTK7SfvFXNOZZ6f2g9s8YLlYRMNKBtgLs0QDX/G75Zki9d8Vdac10IrQTl+fIodvUrwxoX66yj+aKbxp7DhQbWIjDdQsk/8itW2kUIsyVp50941ksFLjzKl7tpXhU+W+aV6UiguV2/1E2pYYx0QXhTNR8SIScnCWMfjAkUuKj2kfxD99/o7mPiUH0E9LgfREMB5Ek361FUH/vL0=----ATTACHMENT:----OTMwMTM5ODEwNDgwNTE5OSAyMTg5MTExMTk3NDI2MDAzIDM2OTE4NjQ0MjQxNzY0NjY=