['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:----aolB61wiSsh+PyFi3lbEjMy6I7v+AvlvqE4TxlGotfs1HRhCjYqPRz09FcBJKK+2aexeeVQtqntgGptVJ67elypHuACKNzi2+pHFv5Nzq5PpKroZWSPdntClxWXi6tTDidgtWpwk7tv8HUbOUNt7Rfqr8r1AfGd5UZg6AiE2H91LgbN0mKo8XO+eoX7zq5v1gpk09cm2bRYKArYGlm32JXMkJQq+qxByq+4/aZW3+L8PEV+O753SJHNQUjCSAoTpBspm82gz2QivZA1pHaV4A0ojnhEvkQCB04feCuXR8EspJaVo632zAv3Na2e6rpINw6dmACzSgPePRYICjvhnMz2oTafDfZNBHCsw+FbXS4MEzpcqmOKBUNeoC8rWtLBIWj+J2xdDJ+3avPjvGFvksdiIyHl3eNP8BE/DHb1EAiITgTxkRvO0rHS5NO2AKkIjjFxy7gWHsFAzVBWWv5seaNWwEXLJHlxM0+skNZyWSjjUkwlh18nBhUB6/+ENsHJSJ+d7YdSKMvWa26Z5TVvp5Aa2GOcLyFwe83KgoAL2K1AG7AV2cfpzKN1TO2dfLTeThZ4u/Gpz08avFFV9SGMBqrLEHSksJvjB1ZP6ashXfyWy8I3himeavg5ihm3/NoV4mLI7rR4H660iUGGNcDcAoN6hxfjpb8QCYY0AG9Zt0T0=----ATTACHMENT:----MzU3NDI5NDc1OTExMzM1OSA3MDczMjI0MzgwNDQyNjc1IDg3OTc1NjQ5MzE2MjAyNjI=