Skip to content

Commit 4c29798

Browse files
committed
Put the test in the trait instead
1 parent efe6a58 commit 4c29798

File tree

4 files changed

+8
-24
lines changed

4 files changed

+8
-24
lines changed

spec/StreamFactory/DiactorosStreamFactorySpec.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,4 @@ function it_creates_a_stream_from_stream()
1919
$this->createStream(new Stream('php://memory'))
2020
->shouldHaveType('Psr\Http\Message\StreamInterface');
2121
}
22-
23-
function it_creates_a_stream_from_non_seekable_resource()
24-
{
25-
$url = 'https://raw.githubusercontent.com/php-http/multipart-stream-builder/master/tests/Resources/httplug.png';
26-
$resource = fopen($url, 'r');
27-
$this->createStream($resource)
28-
->shouldHaveType('Psr\Http\Message\StreamInterface');
29-
}
3022
}

spec/StreamFactory/GuzzleStreamFactorySpec.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,4 @@ public function it_creates_a_stream_from_stream()
1919
$this->createStream(new Stream(fopen('php://memory', 'rw')))
2020
->shouldHaveType('Psr\Http\Message\StreamInterface');
2121
}
22-
23-
function it_creates_a_stream_from_non_seekable_resource()
24-
{
25-
$url = 'https://raw.githubusercontent.com/php-http/multipart-stream-builder/master/tests/Resources/httplug.png';
26-
$resource = fopen($url, 'r');
27-
$this->createStream($resource)
28-
->shouldHaveType('Psr\Http\Message\StreamInterface');
29-
}
3022
}

spec/StreamFactory/SlimStreamFactorySpec.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,4 @@ function it_creates_a_stream_from_stream()
2323
$this->createStream(new Stream($resource))
2424
->shouldHaveType('Psr\Http\Message\StreamInterface');
2525
}
26-
27-
function it_creates_a_stream_from_non_seekable_resource()
28-
{
29-
$url = 'https://raw.githubusercontent.com/php-http/multipart-stream-builder/master/tests/Resources/httplug.png';
30-
$resource = fopen($url, 'r');
31-
$this->createStream($resource)
32-
->shouldHaveType('Psr\Http\Message\StreamInterface');
33-
}
3426
}

spec/StreamFactory/StreamFactoryBehavior.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@ function it_creates_a_stream_from_null()
2424
{
2525
$this->createStream(null)->shouldHaveType('Psr\Http\Message\StreamInterface');
2626
}
27+
28+
function it_creates_a_stream_from_non_seekable_resource()
29+
{
30+
$url = 'https://raw.githubusercontent.com/php-http/multipart-stream-builder/master/tests/Resources/httplug.png';
31+
$resource = fopen($url, 'r');
32+
$this->createStream($resource)
33+
->shouldHaveType('Psr\Http\Message\StreamInterface');
34+
}
2735
}

0 commit comments

Comments
 (0)