Skip to content

Commit

Permalink
test: Switch to the Safe API for tests (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Oct 11, 2023
1 parent c0fe4a6 commit df55b9d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/BoxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
use function implode;
use function in_array;
use function iterator_to_array;
use function realpath;
use function Safe\realpath;
use function sprintf;
use function str_replace;
use function trim;
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Command/CompileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
use function preg_quote;
use function preg_replace;
use function random_int;
use function realpath;
use function Safe\realpath;
use function sort;
use function sprintf;
use function str_replace;
Expand Down
4 changes: 2 additions & 2 deletions tests/Console/Command/DiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
use Symfony\Component\Console\Output\OutputInterface;
use function array_splice;
use function ob_get_clean;
use function ob_start;
use function realpath;
use function Safe\ob_start;
use function Safe\realpath;

/**
* @covers \KevinGH\Box\Console\Command\Diff
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Command/GenerateDockerFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Fidry\Console\ExitCode;
use KevinGH\Box\Test\CommandTestCase;
use KevinGH\Box\Test\RequiresPharReadonlyOff;
use function realpath;
use function Safe\realpath;

/**
* @covers \KevinGH\Box\Console\Command\GenerateDockerFile
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Command/InfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use function extension_loaded;
use function implode;
use function preg_replace;
use function realpath;
use function Safe\realpath;

/**
* @covers \KevinGH\Box\Console\Command\Info
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Command/VerifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use KevinGH\Box\Test\RequiresPharReadonlyOff;
use Phar;
use Symfony\Component\Console\Output\OutputInterface;
use function realpath;
use function Safe\realpath;

/**
* @covers \KevinGH\Box\Console\Command\Verify
Expand Down

0 comments on commit df55b9d

Please sign in to comment.