Skip to content

Commit

Permalink
Update ArrayFileTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkregel authored Sep 17, 2024
1 parent e3a7478 commit 90d1b33
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/ArrayFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -835,14 +835,13 @@ public function testSingleLineComment()
);
}

public function testSingleLineCommentSubItem()
public function testStrictFileTypes()
{
$file = __DIR__ . '/fixtures/array/single-line-comments-subitem.php';
$file = __DIR__ . '/fixtures/array/strict-file-types.php';
$arrayFile = ArrayFile::open($file);

$this->assertEquals(
str_replace("\r", '', file_get_contents($file)),
str_replace("\r", '', $arrayFile->render())
);
$code = $arrayFile->render();

$this->assertStringContainsString('declare(strict_types=true)', $code);
}
}

0 comments on commit 90d1b33

Please sign in to comment.