Skip to content

Commit 1ecd0c7

Browse files
committed
remove iswritable assertions
1 parent 74ee07f commit 1ecd0c7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/VCR/Storage/Json.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class Json extends AbstractStorage
1717
*/
1818
public function storeRecording(array $recording)
1919
{
20-
Assertion::writeable($this->filePath, "Specified path '{$this->filePath}' must be writeable.");
21-
2220
fseek($this->handle, -1, SEEK_END);
2321
if (ftell($this->handle) > 2) {
2422
fwrite($this->handle, ',');

src/VCR/Storage/Yaml.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ public function __construct($cassettePath, $cassetteName, Parser $parser = null,
4545
*/
4646
public function storeRecording(array $recording)
4747
{
48-
Assertion::writeable($this->filePath, "Specified path '{$this->filePath}' must be writeable.");
49-
5048
fseek($this->handle, -1, SEEK_END);
5149
fwrite($this->handle, "\n" . $this->yamlDumper->dump(array($recording), 4));
5250
fflush($this->handle);

0 commit comments

Comments
 (0)