['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:----ya8JZPYucPTGDeuXJokjgjE5Zz0BJKeurpAJzgNVpBx3P+RDv6Wrhow+K4zO5bYsxe5u+ac6qjpwUKaFk25adhPuTs7xv719pyBQx2vkERutNAq1RCdKHSLyOJ8uJvs+NWfbSDp5Jee2GKFyPHVBpWXplCXhvGLRRBrslrb+gkQSD8dCo5gyVbQ5ve1QDfuJnmNfaGXdaqpPNct+F0ZmRKRzWRHIwqWau+yOXXwR/A131uV/TiQC7ZBGOcneKKYsIWTPpCaPhUUMCSnStHql6UUC2R1sydsNauPMCFYf+9uUe7vHtH0uu+ZWWi44zO5m7ncpmW1Sj/ZXH/L3nM8Au/Z/1TVaaYGEkfU6+47gjM6Oo0ZYyuBZpA22ljKxTT+ETtWl5QKU2VSt51yEnh0x2+SOETJBA10k7kqBLM+VL3BU21UaMKJDq94nmQ7L/vOV06JLUD5wPhOo+CjBzXwY7iTaCkNVlmLYVPEd0k8HdnwO2FjFq6IY1Kc8/5Def6H01WrZE1FUAHnfRwfsleYT9u/EDX5rxUM60YSa/FkAfH1nBsWMAm5CgXzp/l2CnZ9vB4L97FJoFd9esjo4xAqxaV2BCTbRFSuQ77LA7anccjCir7uRnrOfZTq0PNgPUu2L0EMpU1I4zhCrubjRRKj8glb/I+HWDgG8UIPfcbB04Fo=----ATTACHMENT:----ODg0OTE4MjgwOTgyMjQzNiAxNjQyMTI5MzkyMTA4ODc2IDM4OTA4NzA2NDQ1MzE0OTA=