['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:----O75jGwMdy5AHrHYMQiPK1qWrcHyidQAUxUaK6X6TMknjba+fegft0UyPciEMLjEmMqowFx3CxXcWII8cz3sCXbP2I7t+K0n8gjezmIDRY4DKhkge5H9riArsH8nblAJBGRbLUkSK4igMOjk5MpZ+Osa27eR+lhw/YLaHvfXVtmLaqHbQ4ux8RkfvWt0+ER0yCgheUuIQfVkdkrAf9PnyWYdSib+qQ8XQB2nV52vzf6DG3tCk0/LKjj3dHBDUN5UMFUsqIDwGIlxuLTbwpCPYEKWxPOKozZwZrH/chC+YEa1mQuWSAjX3bIroJLDeKRrKT7zX2wM1OUHtqGfyv189qf3nwu5NDJQhs9ABV53FsqYbqIQZeG6zKBkDnDsr1rvuRXtyuECkVWLd4hOP/G0EmPqymZWYYKxs1/Qa+WShcusWg9PPY5lz6Dkkst3eniyWyyBUAk9KH4tO4TU/E5pqVU7WhEesljfkvgA1UElZTEjMJu+APuZNy4nRXodo6OOr26SAwgR0Vx61bcSsck2PslgtOE2VRM36Kbqn7DVvOwsH2/SYSDv4Y+XldqupPS7Sa9HmP9zaRlH3Hy8mRjCKBxOYKrkyAzXVbmQTcq1wL4bIOlFGz0e9k2/1t4u+Ckb3Sf6YorBRJaZvyJBYp3k8v5f0EFsJpwL9xAUaU/EPrF4=----ATTACHMENT:----NDgwMjg3MjcwNzYzMjgzMCA3MDUxMTY0ODUwNTAwNzEwIDQ0MTgxNjQzMjg3OTIyMTU=