['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:----s969YHqlcZ+RZQwtvmJsknA2tSMy8pTItk92V9r4Udx9S8bPd6AB3wyooPu9CSSc11cDZTSIsd8XQsifgJx+kw0M9CWoUhovOowhDorpxxBgEqstrysIjN3h+ai4AatL2rL3ahzmDuJJu1J105RKRyn+qaZv21r9w6COuMwrBMjj4YbWz4yUEJk+fO2aU02XpqF8NGoEBFQLgVDV4NOaq7/4XEAkqgjarhIEvXSPwwKXJEkaaoVCpUDxb4gHsmouJaV3z11UUcSGs9NIgQW3DepMZGzhjvagTa9tsODh6pzTIhnkWwEMn4YBN7p3+QpAs5N9XMqwvuRACUmG1mopJ3b3i+ACp7PJ/bYrd/1yBIYlogRVWc3nMN3GojDvgDLzM7RSh5OL2ZL31WZOz+Eb5/8bbR2/+SHwN3maQWwNgedd7OHCj30NaAtlTvCqB8U8JTIKEuEJ+V4oqn8PhZNuBJAnylNI9wA067SIilOAm2ijUftfdisvq5kSJBkNnWvGgMvo4++yRRCljH5YCI/aaRE+pH1KsB1yqEpYAGyU53oyGT831VUMq7bgLg1O469odJKt66sJRiiBoVzzZ1fbsbUVIQyqfT8iatE3XqIh/wOHYrVc5dYajGCvqdvpYb+FqGAY99ohUKMN97mJslNl0qVoyNPLMUvVt5CpYsPTpP4=----ATTACHMENT:----MzkyMDAxMzExNDEzNDc3IDEwMjgxMTAxNDk0ODczNjcgNzM5NjU3NTY3Njk0MTk1