['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:----sL/AYaAgeza0+yHqqGhPGaNibxjL4wE3L+7mlxuhFytAexGfgqnrGWdDmcV3Q2hdvb4iaSvrYLjALmiSjavjBd00hrzRSkNfNGHf76ZAp8SD1MZBeZvrzWODNhxvfZjeig9bjihblFBqUYvrQ9fr6tlPy9swqskflqnoeY4r3AFcN9ySIwSeX+AyzOXTYAVXLFXI0PSiEIaLxgNbMBnoXv6x1P2AoPU8IjRIxziXziBC9FMCTExLEKzmTnkeEdZqP1zAK0wEllT0YN8OES/1rSYJj9QXpR47gi/WQbwSk2vouZO2NLCuADOinGhYdsGiwV8spPLIwFadLbpGV5066VoHQgeKo++76YdPmrMyyIqsfZ6R/7KvA/aK/JJ+nQw3GSTJz2oV0lGVXvUyKwlgytA3YkGwuL2tyNV/wwJubLuXG5iCPPaPXa/ZFameTB7QKYtwIrHJq4EsyffvTVlzBWNwO7jIVFNADDGQc8b1Z21UPbnnHsca+gv21F7SxKKym37abL0qQWX+60L/UwrV+Ca2hM4vfamb0Gdo8WZCh9kIOu5uMfaDyxnYLBSAN8bHFTK17CPPxYwunDupd2FoNuKbB4Pl9ZZf0Iuavrg+i2dgU5u/wZKlyxf1899ZLOHmkVuugNH8N+QeJFJdqSmy1aVKGIJFtgckFugFf169Ljk=----ATTACHMENT:----ODE2ODgzNDUxMzgwMDYyNSAzNjA3NDU5NTkxNzU4NDcwIDYwNDc4Mzg3MTk1ODM5NTI=