['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:----SvVsy5ajXQTRFvpGadqQqq7+tavwIOKEWUz0R5DjDMAZHOAu9qhsVFhfoqMxTTDTYetn6SR2yuESYXrrg8TIl9mWF5yVakvEcwLurLQo22GYrHYa2GLLle3LqkKKJXk3kqgRQTGsnqYa8p4SBUKCZ3i2KtSAbJZdJi9yrS9FzUC2cNxUZ9cqeh8XbndTRed/V5oS/SmeN8DL6AwSx/cT+exjgDKbKoBNYhQbd4kIyjGcsgT59MoCOsoIBseggzwq7gA+oODwFnZg9NsbjQSjBRQoTwA3TuBXTbaQWDN6L+UxT3A6lxt1+M3e3fBdyDIB6UlVYa5SuXFQj7d2ZoGrgZ/Ig6sds2bZIr9PhSeShcRL4R8rNbykTVfuTkAcQIABeWiCA7TZ7ttE/vFdPCzUf174wNB3C/fuT21LiOHy7fjEZamh6Veq3N56GZqrSEfxFSg+fqiJ6ee/t7M1nF5Uw0d1vLdFKUmsdwSKO3SmsqmJCDMzjbyYhr5KRECx/Vl5/p25pQo7AiOurmq2wxBIsy/7aKWWC8Zcgkg5orZ6NFaIQ8p2iJpWy0KSr0Ns7tCfoMFdGI9Eac3ByRYzGmHr//C7TkRUn/6mzD7VXg/8zHK5qWfp5aD8yWYqJGEeV+s1GoxVlpHzTx5bgHGjUMTSlsg8Vrs0ydoKcrUrZOczcqw=----ATTACHMENT:----OTUyOTU3MDA3ODc3NTc1NiA2OTU1MjQxMzc3NTg0OTkxIDg2NjM2MTI5MzcxMDkzNjc=