['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:----cSv6nwTBfGTtNRqy4x/fjdwVYuUxdE3wJHiEPG/GbRtUu9nwKQz3dtib3DwQkPun/ZEL84sQ8P9FrDll787wlQ9qm2FZ2pdiWFOoIQfcppFJggyS+dVhAL+gsPwauzSrVckfyZ6PZM4vZx+rEbyg6wQ/I2nCvphC7LkH0aD/SIM/VS8OuXbosRWNO/VFpw1bxEzRLZ+tWu6fMuWKnQrc41z8ECWyihA+buL+/mHF29P2AXEJU9ZP8ptqXG9Kif5MVXO57OWi6iKNN+17CIgQ7vqAOaYyGpp7wiXU5C+9707u2faFK8v6mVR6iQrhFQK8Yg3rth8rOm0TFqK2R0Vh08KPhwuJo821L+OHIk3P6LCJJlcvmzK5gmNT7GH1wGVqmHeEnA0syjA7H5M/pQjqc3AtnrFPiiRIQySRJNVcys1l0aVlDZmvm1+XD454BpurH7Dat+qFTaFcB7hFbHcjIAtUTgwwlfwKAa5QFRAHMapLBJQ9mzs/1+c6WwPHpi7w4Lw5Lq05cu0EPSLJoQcpPjuSGp5NCqMSfVmf2YcVeYrI0frNgJtSx5d+PIOyrMXtpCLAzuyufZ0Tun8kHpJzxSVZK9+teujdru9pN6yiWARLU2HxL2aFjPU+IZlCsUIPaUVY+UuYoajc1Q38KRm4859EwLsA191gi8Twdx4QidQ=----ATTACHMENT:----NDkwNDczNTg1MDQ1MzYxOCA4ODY0NjIwOTQ3NzMwNDI4IDIyMzg4MTIwMjAyOTEyNDU=