Skip to content
This repository was archived by the owner on May 27, 2022. It is now read-only.

Commit 76d00fc

Browse files
committed
Update to flysystem:2.3.2
1 parent 26e9cb8 commit 76d00fc

File tree

2 files changed

+2
-46
lines changed

2 files changed

+2
-46
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"ext-hash": "*",
1717
"ext-sodium": "*",
1818
"ext-zlib": "*",
19-
"league/flysystem": "^2.3.1"
19+
"league/flysystem": "^2.3.2"
2020
},
2121
"require-dev": {
2222
"friendsofphp/php-cs-fixer": "^v3.3.2",
2323
"infection/infection": "^0.25.3",
24-
"league/flysystem-adapter-test-utilities": "^2.3.1",
24+
"league/flysystem-adapter-test-utilities": "^2.3.2",
2525
"malukenho/mcbumpface": "^1.1.5",
2626
"phpunit/phpunit": "^9.5.10",
2727
"vimeo/psalm": "^4.13.1"

test/AbstractFilesystemAdapterTestCase.php

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SlamFlysystem\Test;
66

77
use League\Flysystem\AdapterTestUtilities\FilesystemAdapterTestCase;
8-
use League\Flysystem\Config;
98
use League\Flysystem\FileAttributes;
109
use League\Flysystem\FilesystemAdapter;
1110
use League\Flysystem\Local\LocalFilesystemAdapter;
@@ -63,49 +62,6 @@ public function fetching_the_mime_type_of_an_svg_file(): void
6362
static::markTestSkipped('It\'s up to the developer choosing if relying or not to this functionality');
6463
}
6564

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-
10965
/**
11066
* @test
11167
*/

0 commit comments

Comments
 (0)