Skip to content

Commit

Permalink
Update tests/AirInjectorTest.php
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
koriym and coderabbitai[bot] authored Jan 12, 2025
1 parent 636156f commit 18ab50e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/AirInjectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ protected function setUp(): void

protected function tearDown(): void
{
array_map('unlink', glob($this->scriptDir . '/*'));
rmdir($this->scriptDir);
$files = glob($this->scriptDir . '/*');

Check failure on line 42 in tests/AirInjectorTest.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Function glob() should not be referenced via a fallback global name, but via a use statement.
if (is_array($files)) {

Check failure on line 43 in tests/AirInjectorTest.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Expected 1 line after "if", found 0.

Check failure on line 43 in tests/AirInjectorTest.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Function is_array() should not be referenced via a fallback global name, but via a use statement.
array_map('unlink', $files);

Check failure on line 44 in tests/AirInjectorTest.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Function array_map() should not be referenced via a fallback global name, but via a use statement.
}
if (file_exists($this->scriptDir)) {
rmdir($this->scriptDir);

Check failure on line 47 in tests/AirInjectorTest.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Function rmdir() should not be referenced via a fallback global name, but via a use statement.
}
}

public function testGetInstance(): void
Expand Down

0 comments on commit 18ab50e

Please sign in to comment.