Skip to content

Commit

Permalink
Tests rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelkg committed Aug 15, 2024
1 parent 6f74d62 commit deca616
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/system/Autoloader/FileLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit deca616

Please sign in to comment.