['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:----DB1ShjfxIeyQRW0ud0qYb0DWDNOI/QJhh3kBOhsRg9MNLVA4RAhf7jDPhviJ9MM0EchjA6ArKH9s0ESUgxmWA3qOafNifay74hnjvq+wetOt9NBgvHbwR62UrXlNyFwB5gtiwLAMdaNL0QPtBWF9F5dWQPv01LX1aNyB8cemSMRovQho4ZXTt1XsnWetcKM7az9/dKljABFTriIMx7KSvI/eL0KCqIJo11OUeE8EYiJ8FgRs9ZtVVnlraoie3Un2tDYxTpnBLL0rWBH+aoAvvGfw0iyT2Iu7cskWZ4dRzWWoxRSz7gi1nPrRCOt19CSPyk29727yD9cnj3CQ0FtaJqJue78WJsGd0SLU9GRJ/MfQWswwz7Ek9xMi7yMpsi9l8jrsb1TITCTyq83iuCMThJTsuB90znAAHYBC74njk/NRaj5HwBnTENpEKJsOQjlClm/23Ee+9pil18h8mmABQvg0k7rrNOi6lgt9FSU0u3k8vjz3Zj51+VXntN+tKkwkXy5Cb2pR9NXUlj1mEyUE7LSWu6g11mnZUnaNIN2SKxrw/ROd1dqUDNbJrXRLCBWU/jo6VmXnYZSNv5a52tZVSD2O8OMLMbP+1qWtTHN7MS6d+Xj3NgRyZ9go26wMxlanUkdHQ2Pp5/a4ubdsCwZwTygqwewJtDNA9z7dKUCdros=----ATTACHMENT:----NjY0NTMxMDY5NDE0MTQwOCA5ODc4MTQxNjY4MTYwNjcxIDUwNTYzMTgzNzIyNzA0NA==