['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:----gWmjjY+Up66HHmvKQvsvFK9AmnB31AwMwj3aEgs11bMLJIWTsTh/i77SFNjPyY7H9y0KTsXPLLM/9IZY9KxhV7SiZnPKu5XCb7cWjcjBBeDVCSekaX70ZE8M6lU8tWv78sMFlSCTtdCHslT2vpk9hVJgenkAO7Xos0jSCmBjAUS/Hi1KTl6BMsTLn2PJYV+5+ArkSzvIiCwyHoauaaEtLuipbDihVL0zTba7PmD4Bv2K5roP61PTnd1WKuvwCEqKbL/ZdABpDcCGd5UL1Ihjx6e6YHHf4P6e6SnSal5YOMtOpIoao/M9CUX4WXZplGD2GRNFyyJd34Sw++EvZ85DbY/g+Hc2b0fx0+HEB9YcO0DpcTMnI0eXP/rbMeBcxvPHZ36WO7QE5o0m/0HXGvxXybZVWei46pS0gNHwTKtMKjBBKPfQoxeSPQDFlw0Ru5Q5A4QteK2IdJKQJ2/BbT6hO3NLq53vv6/PgeM9GUcECbx5BDu+9KmKDgHMF/RcQiYtXAATQGRifPDIFsQscmjCCpM4aM/FlALj53xI1GV39GXnTxgklQqJ2MExgfmU1aviZyV0L5bHYsVv0xSF/59TTQgcevJvwuZldL/NGjDToJ2k7ZOR7e6y/wnFv3haEde9oxinE7nHQ1GjUAEPsbcMS1LDrdfEe/aQKkSgHW/eJeE=----ATTACHMENT:----MjIyMDI3OTQ1NDk4ODkzNiA4OTM3NTQ4OTMyMDQ4NzU0IDM2NTI5NzM0NzgwMjI5NTg=