public function testRemoveLines() { $mockTextFile = m::mock(TextFile::class); $mockTextFile->shouldReceive("removeLines")->with([1, 2])->once(); $mockTextFile->shouldReceive("extractAgainAllLinesIntoArray")->once(); $this->textChains->setFile($mockTextFile); $this->textChains->removeLines([1, 2]); }