getMethod('displayHtmlForColumnChange'); $method->setAccessible(true); $ctrl = new ChangeController( $response, $template, $GLOBALS['db'], $GLOBALS['table'], new Relation($this->dbi, $template), new Transformations(), $this->dbi ); $method->invokeArgs($ctrl, [null]); $this->assertStringContainsString( '' . "\n", $response->getHTMLResult() ); } }