|
5 | 5 | namespace SlamFlysystem\Test;
|
6 | 6 |
|
7 | 7 | use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
|
8 |
| -use League\Flysystem\Config; |
9 | 8 | use League\Flysystem\FileAttributes;
|
10 | 9 | use League\Flysystem\FilesystemAdapter;
|
11 | 10 | use League\Flysystem\Local\LocalFilesystemAdapter;
|
@@ -63,49 +62,6 @@ public function fetching_the_mime_type_of_an_svg_file(): void
|
63 | 62 | static::markTestSkipped('It\'s up to the developer choosing if relying or not to this functionality');
|
64 | 63 | }
|
65 | 64 |
|
66 |
| - /** |
67 |
| - * Delete this test once https://github.com/thephpleague/flysystem/pull/1375 is released. |
68 |
| - * |
69 |
| - * @test |
70 |
| - */ |
71 |
| - public function writing_a_file_with_a_stream(): void |
72 |
| - { |
73 |
| - $this->runScenario(function () { |
74 |
| - $adapter = $this->adapter(); |
75 |
| - $writeStream = stream_with_contents('contents'); |
76 |
| - self::assertIsResource($writeStream); |
77 |
| - |
78 |
| - $adapter->writeStream('path.txt', $writeStream, new Config()); |
79 |
| - fclose($writeStream); |
80 |
| - $fileExists = $adapter->fileExists('path.txt'); |
81 |
| - |
82 |
| - $this->assertTrue($fileExists); |
83 |
| - }); |
84 |
| - } |
85 |
| - |
86 |
| - /** |
87 |
| - * Delete this test once https://github.com/thephpleague/flysystem/pull/1375 is released. |
88 |
| - * |
89 |
| - * @test |
90 |
| - */ |
91 |
| - public function writing_a_file_with_an_empty_stream(): void |
92 |
| - { |
93 |
| - $this->runScenario(function () { |
94 |
| - $adapter = $this->adapter(); |
95 |
| - $writeStream = stream_with_contents(''); |
96 |
| - self::assertIsResource($writeStream); |
97 |
| - |
98 |
| - $adapter->writeStream('path.txt', $writeStream, new Config()); |
99 |
| - fclose($writeStream); |
100 |
| - $fileExists = $adapter->fileExists('path.txt'); |
101 |
| - |
102 |
| - $this->assertTrue($fileExists); |
103 |
| - |
104 |
| - $contents = $adapter->read('path.txt'); |
105 |
| - $this->assertSame('', $contents); |
106 |
| - }); |
107 |
| - } |
108 |
| - |
109 | 65 | /**
|
110 | 66 | * @test
|
111 | 67 | */
|
|
0 commit comments