@@ 80-87 (lines=8) @@ | ||
77 | ||
78 | private function doPersist() |
|
79 | { |
|
80 | if (!@rename($this->getRealPath(), $this->destinationRealPath)) { |
|
81 | // @codeCoverageIgnoreStart |
|
82 | $lastError = error_get_last(); |
|
83 | throw new \RuntimeException( |
|
84 | sprintf( |
|
85 | "Could not move %s to %s - message: %s", |
|
86 | $this->getRealPath(), |
|
87 | $this->destinationRealPath, |
|
88 | $lastError['message'] |
|
89 | ) |
|
90 | ); |
|
@@ 100-107 (lines=8) @@ | ||
97 | ||
98 | private function doDiscard() |
|
99 | { |
|
100 | if (!@unlink($this->getRealPath())) { |
|
101 | // @codeCoverageIgnoreStart |
|
102 | $lastError = error_get_last(); |
|
103 | throw new \RuntimeException( |
|
104 | sprintf( |
|
105 | "Could not remove %s - message: %s", |
|
106 | $this->getRealPath(), |
|
107 | $lastError['message'] |
|
108 | ) |
|
109 | ); |
|
110 | // @codeCoverageIgnoreEnd |