-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qa: move test into dedicated script which is executed from unit test
This reduces the number of Docker containers spun up during CI and results in fewer total checks. Signed-off-by: Maximilian Bösing <[email protected]>
- Loading branch information
Showing
4 changed files
with
37 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
{ | ||
"additional_checks": [ | ||
{ | ||
"name": "Unit tests with non existent TMPDIR", | ||
"job": { | ||
"php": "*", | ||
"dependencies": "locked", | ||
"command": "TMPDIR=nonexistent vendor/bin/phpunit test/unit/FilesystemOptionsNonExistentTmpdirTest.php" | ||
} | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
test/unit/Filesystem/TestAsset/instantiate_filesystem_options_with_cache_dir.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once dirname(__DIR__, 4) . '/vendor/autoload.php'; | ||
use Laminas\Cache\Storage\Adapter\FilesystemOptions; | ||
|
||
$option = new FilesystemOptions(['cacheDir' => '/./tmp']); | ||
echo $option->getCacheDir(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters