Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Switch to the Safe API for tests #1050

Merged
merged 3 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading