['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:----crGSRrWsc1NzJsOj0FjhCB1rVW0Df0qcA2WemUAEJme7Fp5xh4oOhrAqyG33KdaMNl5ZOzyaeHx7In6gs7l48Zuel4LgjTv9r59AWqT7ItEdHiT3FE1aDECS7kzAbJ3SvYE84fa72fgTShOXIyklm7my/RjZ5r1nz2jd83ny5uU2jiaQmDdtZR45PU5yoeCtk0E99/DnobZCE10eEvkuvsnf6gm0quS3Yjzg0zZabpN0Zk/eciGIqxShuhxEqrz0FHRSnh1Yqf6sMehTkO6Rafjz2+eeIXp13m676Tz5lNn6aqKyHNCiMoKUjWO0xq+ASw+3Piv83M7om2z81qzu5S5nppnvJTxBVVlt6GKiKSukbcaEpSLriQo2+Oj9VHt1q6/heVZaaYAV/6n4FifjAEPnykq/78xFy+grTatXWrSve21aybv/TC5hdb6qk4GHZtl3n3/H7xwNN4L8kugOs2ld+mVFL9vvwZUkFwk8agvwCno8NpythpcPdl4CdpUA6wPXuvpxJUDgLraflnqRAVkBKSsuijPRm3T5wv+cib4yKtUs2aax6aW1pvBk/MviX18MDX+6N6VMPr7M2PfFXQh8Omd+hJw7ECJCeZq/zyuTqViLMuAFhoWSpXlN+16XR98e8WBhVl9aGgrltkv4vGlrunU2WYWZEaJ24OGv/Rc=----ATTACHMENT:----NjQ3MzQ5NDA1OTcxMzc1MiAzNDU3NTYwOTQzNzY1MDA5IDMzNzkyNDA1MTk3MzIxNzc=