public function testRejectsSchemaWhoseDirectivesAreIncorrectlyTyped() { $this->expectFails(['query' => $this->someObjectType, 'directives' => ['somedirective']], 'Schema directives must be Directive[] if provided but got array'); }