['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:----WB2Rbaw7KGrxv+AcXrRURl0138/ZOL6PizpfLlNJQhTRop/tjTWL551cv9r9RDSSaR0CYOfpNo35S5Hxf+YBQzHLzQppq7oM0ec9UU6pij3Ecr9d1/j5aRWWNiP1LLxA+GK4TJeqgnT4u8LxmjQ6vlUBeCgm/OlW+PtvkaxX6lXdFynz2x650qFYq1UB08Q3w4I6n6SvVOpTgO5mSnsCrWKUz95s1ezKh8qd3CyKDBO5M7tvIeU89AF8VZy8iZTEarg5670R7ieDSibllDc26fddLhiK8g8zE25ZulvAE+MJlUhcPlyqGXUz9s9YzMYOJGBio6HPMqiED5+tNuoWV12PVQ5gd+gO3FhQddswTTfCyXzt5Ox/svM/bx/G84cmx+e6yol1vpxD3gIA+e4hvQCVlE4c0DrbSY4OIYeOeiIsPW+Lo2JrR2yerQx2BkXDNI1a6Tv3OI3b5NILgaozOplxCSL/aeESLdDZTRYw4tHvTpeQYMRhML6XqZnxUf+9XGZGwrcFcs30c/AESd4PkTCLupX4BvamzXXRsyN+OjD9ePvGZl7lfuGJse2vjQkKtl5dl6TRO3OJnDXTSi8Z0Q7f5Mo8oKn8H4/9ORHICHH486D5TZmP8G5HMpiFKD7JwRTbCaX1cPel+E5VAoNwhpmNhOHp1I1fWD7fcyEeLIg=----ATTACHMENT:----ODU1NTM2MTU4NDc2ODE5NCA4NTM1MTUyNDg0Nzk3NDQzIDQxNTk4NDQ4MzkyOTc4NDg=