['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:----LMW7Y71fsEWlVFM8nfPmHT8LRp5ZK7apF76M/NVDK4a8OoY5OJwZj9mtQY62d9bQdIz5PDK4YQc6JySkrVQ+NGqr2UjnsdsLEN3hE2hUrmpYqiW25WWpSaEb2xl/m4xXynY6Plquxyi8vEeeko2xIN7i96EZzoMaEQdy+dBzaUR8bfxUvB8bVNqEyidFulhjNz5wZ86p2tq4SdQBt+pVoMjhVUxzN4dIZsLsb2BP6FdXuJy5xjITgFEST3HcXYy4h7jxwK/uGHVSLQR6PWoZBbJ22Uh4QfUpH6A3c8n78nEvxHFN1vRRP93d6Lv1wwWAau7ftCS+kPOrRCqFv7koroqOTogNbxS45KWhYhVRryUrGXwk8oiipZ4EupHu0twKYiYjrw2ieqBIqUCiwkPvh68sVgwm7f1jsvtnJxo7u1EQ4zteMXgy8BepCF1d9hA7gZXZsEdgQKPOlLrlLGTAg7pzS+QjRlBQeLDFUNg1pbFlgWWerUU/RM3nMnNlwYqw8n5ELHMtw0tdI82gKYv/XWdjOKl4m5lhCpHcj3n0FFVJ4m6AuN8Th1SItLHye4iPX4oFbBwMHrd6D8wjH1Vmfmlro+CpY8+cmD9Tj1RjStcCkpgEOBp1iGgDvLvEQnPG1Xx6PyMqJSEYCsRSP9eDWtk450InUOLiJ6V1SkVb7ro=----ATTACHMENT:----NTkxMTA0MzQ3ODk0OTE1IDcwODIxNjQyOTg3ODI0NTMgNjgzMDkxNTE5MTgwMTA1MA==