file_get_contentsを直接使うのをやめよう運動

This commit is contained in:
shibafu
2020-08-22 13:58:03 +09:00
parent f8952474b5
commit 552ff421dd
17 changed files with 60 additions and 60 deletions

View File

@@ -20,7 +20,7 @@ class CienResolverTest extends TestCase
public function test()
{
$responseText = file_get_contents(__DIR__ . '/../../fixture/Cien/test.html');
$responseText = $this->fetchSnapshot(__DIR__ . '/../../fixture/Cien/test.html');
$this->createResolver(CienResolver::class, $responseText);
@@ -37,7 +37,7 @@ class CienResolverTest extends TestCase
public function testWithNoTimestamp()
{
$responseText = file_get_contents(__DIR__ . '/../../fixture/Cien/testWithNoTimestamp.html');
$responseText = $this->fetchSnapshot(__DIR__ . '/../../fixture/Cien/testWithNoTimestamp.html');
$this->createResolver(CienResolver::class, $responseText);
$this->expectException(\RuntimeException::class);