Skip to content

Commit

Permalink
Minor impreovements
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Nov 5, 2023
1 parent 100e6f6 commit a83b66e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
9 changes: 8 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="tests/bootstrap.php">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
colors="true"
bootstrap="tests/bootstrap.php"
defaultTestSuite="UnitTests">
<coverage>
<include>
<directory>src</directory>
Expand All @@ -16,6 +20,9 @@
<testsuite name="IntegrationTests">
<directory>tests/integration</directory>
</testsuite>
<testsuite name="PharEndToEndTests">
<directory>tests/phar-e2e</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="build/logs/junit.xml"/>
Expand Down
13 changes: 5 additions & 8 deletions tests/integration/ProcessResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@

class ProcessResult
{
/** @var string */
private $stdout;
private int $exitCode;

/** @var string */
private $stderr;
private string $stdout;

/** @var int */
private $exitCode;
private string $stderr;

public function __construct(int $exitCode, string $stdout, string $stderr)
{
$this->exitCode = $exitCode;
$this->stdout = $stdout;
$this->stderr = $stderr;
$this->stdout = $stdout;
$this->stderr = $stderr;
}

public function getExitCode(): int
Expand Down

0 comments on commit a83b66e

Please sign in to comment.