['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:----ZQd1MBoKJyMmSX4MomC83g6txVzUXIHWQ6TwxFJ4Z5kMNPXU0ksoSAThJQ8gqBgQzmGN9Bf6hWoOkpRqyAwRqrEeXJiImCnZ9UQ1su4lRkRsTCNWH4Zbi0Ce0Z40gtoaRn8v0bm4TEaAp3ZXMAlOs4QP3GD8OtiD8WFDgC7qGBvIBmOQTZfZu/ggkBxYcXysgpr5H+UTcTbRg+mKYzDTRBCeMfhtsVk3ZRXQnNQBz0/x6wcLaUW6WOJriuD6SKn97rWNhdl9XCGhnqM7qQbI2n8fLRsj+LYgKLBkphL7q2ilwg0L+X+HtHc6t4FhV/KZZ3cqVI0QrqZBs2Au4r9Ht36HpCnq6yI2RaQClSMoovScpHRex4wcb05LeHoEJ4qzDyvDZug1aAnnqineb24c3Wz3Z2KUKOTC5yapA1Y56KBR/Ch7yM3hlGQqupyhr2D3XeExWXGABQ6c5sZYJuJWc79OlezuxrFWO5vbSOhltZumQ+F3gNdV2+9fgb3SemN5tE40zoKNzk9o2ALmjMXMJS/KR8037n4xg35EMGMvYgtDUv06k4jkFxq1oXyaeni5b+Z8siOMff4JWIw7gQ5OaBHdKPc3DJbd2R0g27usYt+cPqQsJwwCwj995aUklLzOg6sUAHvrLIU81xaK1lvGZ0kkRq+OMKj6WClKC1cuy/Y=----ATTACHMENT:----NTA1MDQxODk1MTc4NDMwMyA5MjI4MjA5OTQ3NTA5MjM1IDE3OTkxODczNDE2NzYzMTQ=