Skip to content

Commit

Permalink
Update FileSystemTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Mar 19, 2020
1 parent 1894600 commit 14d197c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/FileSystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,13 @@ public function testFileGet()

public function taskFileGetSize()
{
$contents = yield \file_get("https://google.com/");
$contents = yield \file_get("https://httpbin.org/get");
$this->assertEquals('string', \is_type($contents));
$this->assertGreaterThanOrEqual(500, \strlen($contents));
$fd = yield \file_uri("https://nytimes.com/");
$this->assertGreaterThanOrEqual(230, \strlen($contents));
$fd = yield \file_uri("https://httpbin.org/get");
$this->assertTrue(\is_resource($fd));
$size = \file_meta($fd, 'size');
$this->assertGreaterThanOrEqual(500, $size);
$this->assertGreaterThanOrEqual(230, $size);
$bool = yield \file_close($fd);
$this->assertTrue($bool);
$fd = yield \file_uri("http://ltd.123/", \stream_context_create());
Expand Down

0 comments on commit 14d197c

Please sign in to comment.