['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:----u4ARjvCWFNg0YUNxTqLd8E4714VI3jjveLXsjIxGC6r0eaaKAtLDWmEqBdg6CvKOxee5JQK1QrOgV121wuubFF/cpnh0ziEwDJLzyxdWSg9FexIuKmCzTjYzzswaAInvNnO/20MkUm8+8OvbFBC3qBgnTqTsfixrfaRz2guTf2iRCYeV7CUhlPrLJjr0sIcUCskV1orr5ViOu0xCy0Xm4/QhmC5iFIDDNsLZDCrDrNsfx52gyRIwOfML/oQlVzLuOY35Sfk59OYYhEEWONrDmXpMV6rs6pWaD0hbbe9vnKRtTmEMCY4OFfO2ZIxNnnRGeIjiuZjpSslplBfFHAadUPYpbqE8BGBdvOy6t0oH19ABwNVJW7JTM83FN92n+1eEltlxR8smUbQKmEcAQY4KiPWMFqyEtyL4NYrdZhPlgvsd6EAoDJ4GSNJdYTOqEdr3eCVq240u3I/zDM7+czBl2MOz7qOY31AiKTCpXUgoOJCAQTHTcG8uTn2OO7gVZhbGeCOYgKxsyh7WhnkLBrWguYHJNx6QSfYtnKBzEZHP7rwQfPPzp8b4a1YAK6MQGoijDi11fT6GcYwgTiBf4p+EpkrlYjicZTEfcmxsW5j5f5mCCA8aaJdvLLx2Cgd0/ovW1NiympqvMG6IdfgCsyERRId2EuJq++ecTj5R/4SLIv4=----ATTACHMENT:----NDM1ODA5MDkwODgyNDU2MSA0ODc3ODg5NzU1ODMyMDQ5IDk2MzYwNzM1NTgzNTc1