['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:----EURZotYGArLW9OeNXjO5Rp1tVzNnG0/edUL+xbuvGQA5KSeptI3PxySjPg/5CBbRZbQFSAPEN/Y0WxhpVjmYbIo8hv0aDjb+XLGxHpJ0SoPH7tOTPsOf6hQ8BDbjqHU9Yg1JG6Ue6uCM5iZZ6tz0kySW+vwofuY6Jx8Ak0iJlasadJ/ZoontHNXnRTzgIJjY9rOoGaum82qxYb8rYvaU8fA9Jq5afwtAXHYNCfguYDotaMxJQlud2irnWLHxfLuPQ6NPLsr2W4WSQIRESxAFgihW23D+iVkvXz21XGKRYiPoCfTcSA2ILOeY9s8IyRkUH/LufZGwiNhl5r045iAoAoQmn9LDf9rpMMYOQ+nLKCv7LmFaGxO/B2Nijwi7U7Ncg4Plczldvgt2XndWrZJbEoMe3RQ1hGvHBWVam/rxUI+XZB2gJNd9bvYhuNfISV3cs6IyqNe/7lToMRigyEh34C4RYCyZzlSNxEU4G9RdiiDwVSPht3X29WcHh3OlS03BoKZR3yoRiEhiQhc+Um8K0WUwFfIHeVyawpGDT3Yijq5y0On6XzIFnQ1mwvPtKkEvyFda4vVOO7Q3XkicYz8R7i//DmEgoFZkkngOHu7rA4qeP9TNVs9/2I+gaogLLNXHqonUj8su9zAba3YRRifg+bvqES7L6ZUfWP6G1uhH4+M=----ATTACHMENT:----MjI0MDYyNTcwNDUyNDc2OCA5Njc1MDM0Mzc0NDU2Mjk5IDkwOTQyOTYwNjczODE3MjM=