['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:----Jr/JTtfdGioTCwswy9lve72IXtPa4BeBczSADOChBN3zoHcTL5G20T0jyLS8RXd0ZqhGCejb/pqyubXkiH1tOeXXyXA+u2gkGKRcq3rwwwZcVlXYYeIMC0zFxUcT/iGy6XtgSOErS3tBaHncFmGFIwURQ6dbisu5Wo3FHH+Mhtv+fg1NmANoDagOeZZKLJKWHChfU2smdPcLmTLGi/sBox3DjOcedywBom1gfO1DSOFP3khwp6PY+bQE1wc7+w/jObqMo7Ef1aKITnO791Wg8T4r0y7iq4R+GzPTAlF+SIC6vXd8A7gkXNwE5q7QpO94z28hcrmui/GxbyS//yi0h3FHM77/utCOwhu8yaamJeqVqnvYvE+tTY+tfuC3EtkaMn5RFw0A8Wl+73OK5n5zC+YS7L+60S9NBYqkBv/9rC4+/bNZhM1NnJ1nqqrzgOHpGvEzu0p1Tee8ZigzfP1TGxAtjPO8XUjoJgJklNYgbC4HhEA0spfqXtbBPzaRbSK003V2PBSjrLNVCFNGqDHfbFCZxv0jIqGxHE+/R5TTr/gIkrJ6k1kwXFgFPiMnZg4ubesjRyt9dcjtoSzTOcW4PJBagOJSEHXBy0Cg6HX0i5l9V0LNnWeEXBVRrs8WqmeU/1HQyQUUe6Mc07wcuMk/Y6f39NvmIik+pkMTiiB9c9M=----ATTACHMENT:----ODE3MDc5MzQyMjkyMzg1NiA5NTcwNDczNTc1NTYzNjY2IDY5MDEyMTkyNzk4MDc2MjI=