Skip to content

Commit

Permalink
Phpunit bootstrap file moved to data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
luzrain committed Jan 24, 2024
1 parent 2fbd1b4 commit 6c88992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
bootstrap="tests/bootstrap.php"
bootstrap="tests/data/bootstrap.php"
colors="true"
cacheDirectory="var"
failOnRisky="true"
Expand Down
4 changes: 2 additions & 2 deletions tests/bootstrap.php → tests/data/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

include __DIR__ . '/../vendor/autoload.php';
include __DIR__ . '/../../vendor/autoload.php';

\startServer();
\register_shutdown_function(stopServer(...));
Expand All @@ -23,7 +23,7 @@ function stopServer(): void

function getServerStartCommandLine(string $command): string
{
return \sprintf('exec %s %s/data/server.php %s', PHP_BINARY, __DIR__, $command);
return \sprintf('exec %s %s/server.php %s', PHP_BINARY, __DIR__, $command);
}

function getServerStatus(): \stdClass
Expand Down

0 comments on commit 6c88992

Please sign in to comment.