['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:----DBJKSLak09+YiBlFHAcC6laoyDfXBdA8gSPnLV90DtmBYmzi6pjt/lKey1K3ALrQHXdcDwFnIZVIha7ihYVJhcboXXOmzxdbNBRppJOUjuCYs9jWf1+vIQA1/obhXy8OjkvywJke+3iIc7v/Yq7fG33FbH9WbMoEJy2D1dFvgu2G2WqvHvlAdAzPZ8yV85yKyWOdkSwyts9rEt8ZT20S7tzzwH8gKnhD5ifYfl2oaJTYEasvwvpCC1JQ50IPmoclO3FDEIC+CtNryhgmyfxFfuk7FMfW3+m5wo1OJAUWAW/rQ12fOJ+54Snz8hhYLAxg/uQHy+bTVxuboMAmwomZOEvPaVVyjwZ+Qf9fKw5vJ8xFVnGZEmQj9hRDnqUO0YQexPxarlY6VVgXgOrKoZv7tgQqAYEHzYzUbqWgTgO+Z0MaiogDzM8Q6fx2rbds7ltogFTFD1efMBuZkvlvaqdUt6lwli0lannHutTk+I0opM8iQOH3dfOgSOQtX+HSBLtlGYTrYHUXP+06gS+zNZ1/7cx3FUsn0b9yNfa9hFxzH0HtEUpMDgBP9PT1NFcF1KqAECfPuo8FpuL8oFAPgnbtNlH+dk0TxUleYvV++HFZRk/8Iw0xkzRXUus6lPnTrK+J0R/spadUub4vKcr0JgvpLR1hqzI4YgJ3WiuW1hFG9a4=----ATTACHMENT:----NTE2ODgyNDExMzgyNDQxIDI0NTI0MTE3OTgzMDQ4MzIgNTU4MTc4NjE2MTY4MjA4MQ==