['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:----ZjWW8EBpLpoooGtQvXVw7/mvKnKlORdfWdvsR9scrqCeZ28JwKeTz1Xijm4okxfj0dJhojnrviqzscCyBTs1UrtVlOQrNtvjs9AimkXT2ui9t+BnF+rhYxjqXc1JHNWrkp+QWAv8pgWzjBG+8+k2uRJhguIJwrWhrcsUJbmXckdAEejej/YDZaZJ5ejrRFIdkLm0Gx5mAX+kcOuXtxAUbzpq6PEauur0cySq4qffT4Mes1MIzXNoKj0dh5ZHIpKyG8kt3e4tsCfmHLxFjfUiF7TKD1Qxsj8HhrQhHKCAIHdct+UfL4UlRowmudGuXPY8Hnqk02FqudsoNX6D0t4mYSdvnCfmkiy/3ULtSgnUYre9Gcc2h7nmRaBoASTbya8a0taqdwdVZXWBvEjlksW0Cw9qYL42rWo6m9nx3z68BEtBGp3g1LAACLRXdgOBv2AWIO+2Qp6k2mOViJdCy3X03PHQ2wAgBS6W28mH6PIR8Bt2t7I0AtdqUj2AWkD+SkbJ6EC75MogoF/jO7O0AtrLabeoxhuSutxYQlr6fhjWfm+9SAzX2KXzTjpo6bFP1Py+jsRoSb/+RvwtNUTtTDVy2mqmSnB3XSYmLjmfldheTyeTM/BkT1B8bT3PDB+UvwwKmxxfUfDUcnCQ5aM8j9v+nMG63utzPiK2ecR5AidKWcE=----ATTACHMENT:----MjE5MzQ0MjM1MzYyNTA3NCAyMjMxNTM0ODgzODMzOTE5IDExMjg5MTk2NTk2NTM4MzU=