public function testRemove() { $this->_writerMock->expects($this->once())->method('remove')->with('someFile'); $this->_model->remove('someFile'); }