['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:----RTiyNOn1vZsvGrm4F9AJ7Po9krbVBdo/x+/pv2rF69Muo8h7rka+xachWRF8rAVWl8rYtJ6wJz7q9D0m7LswGkup68rvwZhIHbLpp0rZV9hDrSQJ3Z5gNP46ju5AJ+jt/9xY5R0mQ/zg7pzZFMwtdJ5dsK5AVb/V7ZdmOcCtcz/85/qdmCMVVDQLXoqvFGyCwZkvkHFIUePfPQcm6c9y/xbYDZhgiyX251mCvXqMK0dpGF0sHNloDkJ5v3ejGnbBw13IhARIKXqmPFUnCAGBPJaSt9aF6zny5NSAhJEWsOuBkgFFdAS37XzKGucVKFh1T1ykhJD+UqF9MQ9jZNb1tgKPuiCD+cCPa8egoutmXgQJHI6iZuH1B63lNkfAW1QhTs/Is6IXNtNs0y/u1aIKrDsPp+wpqh0zAXnLWnmnOePXHIJ+3+IM+o8nLMl7j3IsDu8cK1gH+4v6ocnNAfYkLUN0wYEJM8ylhU+CesLyJaMZSgcTvEpk+/oNREysORsuhEdQNb7qxhKe/Fm7VKZ9L88kX0pOQ6rRSkHAE95vIdCxkP3cjYGFK6hX7fNUNAzUVQLjJWheEfwUJn888U2+a/8mJSrXtz81z31DZ7Y2XgadzKmesJ5lxdbuRW7fv4R/b1irZ8FAep5XrUjv0c5s+NhJ/NaOBPpZcR8Wya00ap8=----ATTACHMENT:----MTIzMjc3MDg2NzIyNTU5NiA3NDgxNzQ2NzM4NTQzNzY1IDcwMTI5MTMyNjcwMzgzNzA=