['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:----tsnNw4Vs3zgFtP4fDpQj8UrInMEomvkXniZc7SzOqzh8HCKol5m0IwQS5d57AxYcLHyVspZ3VgZGFjYelc0ByIbtL1lULnBIv63uL2yBZYkCfx9M9PNtMJUqIBnF9OiM76C9vz32g4V3gqgaMmWCM+qbBIsepcaeNzcNbI7vaDP50PHoIZNp+puBFyT8ngLiSSw+fW+TNNCNyvFzW7zMJJyMqwRJArABRNjTvxU3TLgiizg5MN8hSMFNMc4jnZS0lPlvWkoqTfxbmuhkLFpftzqhWICBbYOp9vDm04XpoU05S+IDsQK9adONU5L734ZHqfojHf0cvcecRqYtaJT/MGtoE6GsDBU/LwYhA6ttHNpLj3AllYamvqhTmVSmFIxZJGa1btnXqZNJNBcG4dyOwIo0Pb1MWIbvT43LHLeLzZuDq9VaXEY4y62LPyVBjwfbd6kMY0wJ5YcfdMdyWN/TkZVre5Ks1kPcaIxcKS4WqAL6m4xHUAPyIx/GeSuCcg2UmEZ02XRYPmMMsBfrAt4J0g7rpn0atQp1cbw+1vcyZafcKlp9JO46yd1+L5vbXHTqlrUNB1PJ9FreLjp23xEs23U7NRrTfpeLFNMz0Jr/l5bzlR0YJcmB6I5vMXFVTCxmnNGsf9R3Yv9KviXOXQy4pEiq6ZLhjaoaCJ6yp5QZtH0=----ATTACHMENT:----ODc0OTU0NzExMDkwNzYxNiA4MTI5MDk3MjA2OTUzNjc4IDU5NjQzNjAxMjczNjUwMjA=