['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:----KL83i7EeeOS5DaE4TAsbTE654RbQYCOuu8Uik3swnkV4CIqHXf49uMi6sjjT0sFU/TUa4MkbvLuCKphoQbOE6kB07081JjbsfVGLcJouFxFDnYkbtR0nbg4cbUlSX6CBaEyXKv4aFmlbq1eNpULqODtgCWEkmZSFN/dI3VQ5sNvU9hz+GgpowOUtyTJDopV9Cf28+LjCLfXDdOe5v5qHKP2OyJFGIHuofqOoTOjI8fDA0LjJxVCG6YOfSDZrVfCg/JkczPKKF5hw8tTZ6ZGor37CdwX2JTgIcf6Q89KYJ6b7lrLQyCPNfYnbQJ3bWZzgAi/ZBsdotACKIgJ3yHNclj89nnTSl2qDvG4LuUEAH/+9uI1iHAHOsDQeXNoU3UyjsxOERoTlFx8NJOm5oriPdUR8pxNNeVTWH/5floz2EC6j3Ie35nTaWHOUFhyzsyQbTTtS8JidIeYry/wZQR3rVjYEYc2Pmmpl6g1bUI6Sm/QUukREXLJe3fAfSwQ31+zxcleqh/wK+yHLbHANpMsIxkBOljCc/axqLhzyBLJ7Zb9idjJD0golQOL//+FhJlTq0qLNuqPKCTUrssaLf20+3DoimSH7Ay1tbxajg/mZucacvg79l7K4L87EbSokZTcFFat8U4C/OLRyplZX3bJoZ8BSKh98465CJ4xSIIH8aeI=----ATTACHMENT:----NjM5NjkyNDI1NDA0MDY1MSA2NDE1OTU4NjA2NjcwNjAyIDM1MzA1NjI3Nzk5ODYzNDU=