/** * */ public function testApiMove_ThrowsException_WhenModelMoveThrowsException() { $this->setExpectedException(WriteException::class); $before = 'a'; $after = 'b'; $this->expect('rename', [$before, $after])->willThrow(new Exception()); $this->fs->move($before, $after); }