示例#1
0
 public function testWriteAfter()
 {
     $mockTextFile = m::mock(TextFile::class);
     $mockTextFile->shouldReceive("writeAfter")->with(1, "hasan gilak")->once();
     $mockTextFile->shouldReceive("extractAgainAllLinesIntoArray")->once();
     $this->textChains->setFile($mockTextFile);
     $this->textChains->writeAfter(1, "hasan gilak");
 }