diff --git a/tests/system/Autoloader/FileLocatorTest.php b/tests/system/Autoloader/FileLocatorTest.php index 625d716aaf61..ac901cb821a4 100644 --- a/tests/system/Autoloader/FileLocatorTest.php +++ b/tests/system/Autoloader/FileLocatorTest.php @@ -246,7 +246,7 @@ public function testListFilesSimple(): void $files = $this->locator->listFiles('Config/'); $expected = APPPATH . 'Config' . DIRECTORY_SEPARATOR . 'App.php'; - $this->assertTrue(in_array($expected, $files, true)); + $this->assertContains($expected, $files); } public function testListFilesDoesNotContainDirectories(): void @@ -273,10 +273,10 @@ public function testListFilesFromMultipleDir(): void $files = $this->locator->listFiles('Filters/'); $expected = SYSTEMPATH . 'Filters' . DIRECTORY_SEPARATOR . 'DebugToolbar.php'; - $this->assertTrue(in_array($expected, $files, true)); + $this->assertContains($expected, $files); $expected = SYSTEMPATH . 'Filters' . DIRECTORY_SEPARATOR . 'Filters.php'; - $this->assertTrue(in_array($expected, $files, true)); + $this->assertContains($expected, $files); } public function testListFilesWithPathNotExist(): void