['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:----e3u0OSiyq6Z6Rv9+0/yNcBJSbWwxj5NSepWExWkN+pOjs/2J0V7NFEmHhwfGNcZD5nhLBESIR8JWtjm4jRCsExWg2/nQD3qLs+0j4SKJlt2IgSovn8o/TgND9S28AMJa9tuloxfEY7ARQCZJP6ASBjrz6sE0kl3wPplfWPqEHkNp671oyrkyKBx8Dz0g6HR2XBFLYpZTtma+AcKNs+flEh4yYqvwvcP5OqePQVtUNVL1fdE7dBXVIc4znOf46vfzik8gPI4viWIdAzMgVe6AfiuPY50t4BNBZXBdh1JM5RTM1RmYwsEzmj3+wSoowL4M9Pxcm3iOKN2R9YdOQ/o3h3BQP/Z1RbCWDHfT7GkA6tf2cKpgddCgO49SIAJ206rexTafTKF3dzpVgf5OoLCy7dPu21oYLRRvMXoNDP/Qn1gTlxmV8uInfKfGyxQhKMst3C5NhpdC6FxbonRYcZH9UJi+kaCkPRHDs1xFVdYSJl/tLLFL8wgc5F9ESGr4nwo7+xQDJnDSkQB/2UP6wHMmIUIP2zB+4KW3qb3mDTkRG9sc3rpNa3ypHw/XM5RLZyN259gT4HebElGt1rCZ8ncWlTJPHs+fGge8G1zlkoYb5i/P0x2fIZD6jgr3vqiwlW5xiVcayIIvmEzxhDHYpFRMXKYz9QvMQT/CwWQYS25c01k=----ATTACHMENT:----NzMzNjU1NDkwNTM0NjY1NCAxNTIwNDU1NzcwNjUyNjcwIDgxODkxOTM5MzgxNTQwODE=