['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:----eEVBQ14a4URQ8yEGFPNYavbxawo8Nmmu/MudYlQtx1oiRwQj3Rl7LtaN7BL7WVumEZHaWP/VMTYTCPvXDqq4JhSAHmAIE6C5Jpni4hV3k/uyciASw5PMIXzifuWyNRYuawJUfokeNy0SpaFph6rEZp/OV5xvl87J9qWStCmRhipCcd+r/7uUx6V6G/RzgKgOXNZ2DQdd3sDj7st0XWJ5H2HBPsWXQXwIYQSbn9HYsSXbSmcUM1O5DmYWLUmuDaFVBIPMGRJGWZ9Mk0IsJczIP/3MQFdCzi8EbJsv3l3RqOU9xb1VVtXgJSpkKg3m7PnGQKp9Yew88FGcooqOAQXDWbUmuX8gHKRsxeDWT8H0zI4jTzA65W/21Cf7i76xLrmCnXlnAASkPyDooIDVVDhsrzUUJvOLNCSPzdypGegr4aVrlqR1Njq3jvh9Kv9lpcIcjkQN1PmMH+RP/X1IGOg4F1Hrc45NiFvbwi6WqbY47mkpg40G53Wu5gEx6JkEeP/ZxKRVOl8VuAD072dgg3ZODKqgjhcxkyu934O+UG/nRee6bd38BOSsQ36y+ake5C7IFKOfdzj+9eUSiKRnVWkbusLqnN/08GiMpdChJTeust7Ze+VGeEML/rEIMrOAPzPW1DoH3P5v+yc1NhmYCZ6qqfFsUNwSq1xzsF5YLjKGSIM=----ATTACHMENT:----MTA0MjUwMDg0ODkxNzMzMCA5MDE2MzMwMjE3Mjc4NzUwIDI2NDI0NTQxOTYyOTg4Njc=