['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:----hL0U6I8Ur6fWj0VB0pINjviGbJ5/Mou3ApqHDUBw/DY2kMYN9j9F/E4DPB+eycfOLT4B0BBvu8uGP3xv4j6hUEj7T1Ov7FXQFsNcysHe/qMs4l2m43c5uEGBCZNeWWzxtYIjRDAJ3DovECQohEIjWI9FWdwPr9PZ+GZNCom5ND4XrqVi/nEmyCEc6wPJSmhr4c1q8IfQT6hVOr61JoMh5qEeedvzW9/AP2AoksjJ6KCfMn90X/6kteFS6tu9ppKPC/z8sZFs+1rVxRojyol1Z3QymLpTPLiCMcGsodQnN4XPwyJOTElP6e9Zlb+knAJIwNObJV7UN8NJ6X5J1HOobYC+lPCoTW1C+VacSDpa/89izEvoufra5Pkvc4OnTTnIsp36QnKqGY2USqzzP4hI8BOJEBeRCamCoPlZByiqw0eOExDVbU+dOznhX1MBk95RtK9sQ3QkOVoJdRRFLmVtm2qJaSZBul1XzgrEIIuJQG7W4pBengQzESHbCcc+4qs4gYRXBsMgt5CBA73ftM8l+QCdTaYieTs2Gnx4YHDYmnsZK4FnLoT6hs+58XM3kMdEkaBP0OAnjCUrJCAOLGSj0SSkmoo+rwCeGHki/sVRayz5gb/RHAJEd4XydFwKJrFg0N1p49HWXtyAeKtcedvV2gi8tgobhCT8vemptEGH9jI=----ATTACHMENT:----Mjc5MDM2MTg3MzEzMTU0MSAxNjUxODIwMTQ3MjUyODUyIDQxMjc5MjU4MDEzMzcwMjU=