['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:----aQ8Eum53FcyvKFHQNfiBOoSc+rBHBG/Gmhaq0AUCRq7VLuIN8UAKeqB9vHUkXa/hgl4VQMWuDv+wPzLZlkTJACeqvGf2lVgxyaxBlqa92aM8bVJ9cxPxILB2TP1LPa8ORoZukng08iKBOdeVQrOTABTd1ai7M29lHQ/bEyH3NZD2AzhF0xXmHe4mxBnnY4TApmlwcvLbFuiVy4JF2r/dTVll/YXFPdf0BhyKA1JSL1Tt1xvzyTPJ6cvsQAm++cAfc8dSgjFMgqJtZHDTUWaIVWlaQMHDMbFBig58lLHKG85GNt6rqcJhjmglXo8EARG3EKKEocZngGbmAuVlfLkcE2C+vHvwIwBGHWPXFDOlpx0Pvr2DAeFiJ9YtMo9SBjRl3czjltxIu2zzh/zFjvvaBbXgQLbBWlncFFPix+T1JB7wTSsWaWAmwfm8NnIHXVmohb/do2BzIfOPmBD5PJC1LxWYh9fUcZqeWOe1xeYqtmJ9SipHJexVm3dnYlVTZDakwL4BLJPoDw0IF1rm1W5jsFKNf2M0ggr2bzaesDj4HFongixbVuBk++BJ57fHeBgNYB9VkaonufUxtCSAQcZMxyY2xPPP/7xogtGx68f2z/5YsO8MGBAlOvFf6qfkH8LEE20sDf8gZ7o3Lvt/SDl3sDQHs5Yh/e8iPLvTnuxsdGA=----ATTACHMENT:----OTQwODczMTQ1OTI5MDU0NSA1MjgyMzU5NTk2NjU4NzMyIDU3ODM5ODk5MjcwOTYxMDk=