Skip to content

Commit

Permalink
chore: update phive tools
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Jul 8, 2024
1 parent b06e753 commit 60d1039
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="^1.10.22" location="./tools/phpstan" copy="false" installed="1.10.22"/>
<phar name="composer-normalize" version="^2.32.0" location="./tools/composer-normalize" copy="false" installed="2.32.0"/>
<phar name="phpunit" version="^10.4.0" location="./tools/phpunit.phar" copy="true" installed="10.4.1"/>
<phar name="overtrue/phplint" version="^9.0.4" location="./tools/phplint" copy="false" installed="9.0.4"/>
<phar name="php-cs-fixer" version="^3.58.1" installed="3.58.1" copy="false" location="./tools/php-cs-fixer"/>
<phar name="phpstan" version="^1.10.22" location="./tools/phpstan" copy="false" installed="1.11.7"/>
<phar name="composer-normalize" version="^2.32.0" location="./tools/composer-normalize" copy="false" installed="2.43.0"/>
<phar name="phpunit" version="^10.4.0" location="./tools/phpunit.phar" copy="true" installed="10.5.26"/>
<phar name="overtrue/phplint" version="^9.0.4" location="./tools/phplint" copy="false" installed="9.4.1"/>
<phar name="php-cs-fixer" version="^3.58.1" installed="3.59.3" copy="false" location="./tools/php-cs-fixer"/>
</phive>
15 changes: 8 additions & 7 deletions test/Composer/RuntimeFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ public function setUp(): void
$this->runtimeFile = $this->testDir
. '/vendor/atoolo_runtime.php';
$dir = dirname($this->runtimeFile);
if (is_dir($dir) === false) {
if (mkdir($dir, 0777, true) === false) {
throw new RuntimeException(
'Failed to create directory: ' . $dir,
);
}
if (
(is_dir($dir) === false)
&& mkdir($dir, 0777, true) === false
) {
throw new RuntimeException(
'Failed to create directory: ' . $dir,
);
}

if (is_file($this->runtimeFile)) {
Expand Down Expand Up @@ -85,7 +86,7 @@ public function testCreateRuntimeFile(): void
{
$projectDir = $this->testDir
. '/testCreateRuntimeFile';
mkdir($projectDir . '/vendor', 0777, true);
@mkdir($projectDir . '/vendor', 0777, true);

$runtimeFileTemplate = $this->resourceDir . '/atoolo_runtime.template';

Expand Down

0 comments on commit 60d1039

Please sign in to comment.