['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:----n8IGgK+J1jKbYmdVrn/mSul3slGKYySuB1jS2Jo3BbqjuO6ZunpvvNP8ZAs3hH8IFE4phUxv7MR1A2YZNyRoZsxargdnDPywJIYsrB5NtN1xPMhrkX13VuooSBBQbD5NY3+OT0J2j6Ptu6Uu26pCBbsT8mWXGxAOq2OlNRGiXWsR0VPWhpm10fpwzUX8yXI8vd68ix4TjgeagdvDAAt3Rof1yH+uPX129UCVlogeJYnpduBL8vQjptqKx8KbhWLrR3tOXcFmURBYUqdnNlbZfK2Sc82vJ3c3qkL/bS4PbVvpfGZ0aA2pGcCUX4/AK6amwOLBsvrxTKQc0lrSSQb41MeQYD7y5SSKxfOVekAto28/tlj/OY9HfwhW2PhJbU7rgNWBV/K77sHUoUeX5htaKmH9b08alrOXUy3+E2JRVQ1IbFXprQPahIqqFBIxnBiSlUjQaNq2k8T9iu6VKzpeAPBEu07+FCqwd7Fd352Z9lNTh6eZkGAOy7s7WUVhhOsiZxwhOAq6byNn4IrN4ZommJAwVngFVBixlsqC+Xb4mCo4HOfZvygA+1Xt5/ZRcYbU/t2IqCtQ08yqDH6O6L9O6Y8NoSK3XtAeGQC2w7IROzlTDg9ZV6w+No4ZZV0DFYEbm+fRnr/D77rcTDe7hIbegHw0UI+JU6VTnIoysNb8Uwg=----ATTACHMENT:----MTU1MDUwNzk0NTQwMTc1MCA0NzU1ODYwMDI3Nzk0MzQyIDk2MDg0OTAxMjI4MjIxODk=