public function testReadLineByLineShouldExpectAClosureToHandleAnArrayOfLines() { $this->textChains->readLineByLine(function ($line) { $this->passedLineToAClosure[] = $line; }); $this->assertEquals($this->data, $this->passedLineToAClosure); }