output = trim(implode("\n", $output)); } /** * @Then I should get: */ public function iShouldGet(PyStringNode $string) { if ((string) $string !== $this->output) { throw new Exception( "Actual output is:\n" . $this->output ); } } }