Skip to content

Commit

Permalink
Drop Windows support (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored Jun 12, 2024
1 parent 71091b8 commit 90a0ba2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 26 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,6 @@ When a sub-process fails, the originating command is given in the output and can
to be run and debugged. All internal commands run with `--printer [...]\NullPhpunitPrinter` which silence the original
PHPUnit output: during a debugging run remove that option to restore the output and see what PHPUnit is doing.

## Windows

Windows users be sure to use the appropriate batch files.

An example being:

`vendor\bin\paratest.bat ...`

ParaTest assumes [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) for loading tests.

For convenience, ParaTest for Windows uses 79 columns mode to prevent blank lines in the standard
80x25 windows console.

## Caveats

1. Constants, static methods, static variables and everything exposed by test classes consumed by other test classes
Expand Down
3 changes: 0 additions & 3 deletions bin/paratest.bat

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
},
"bin": [
"bin/paratest",
"bin/paratest.bat",
"bin/paratest_for_phpstorm"
],
"config": {
Expand Down
5 changes: 0 additions & 5 deletions test/Unit/OptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
use ParaTest\Tests\TestBase;
use PHPUnit\Framework\Attributes\CoversClass;

use function defined;
use function mt_rand;
use function str_replace;
use function uniqid;

use const DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -52,9 +50,6 @@ public function testAutoProcessesMode(): void
public function testPassthru(): void
{
$argv = ['--passthru-php' => "'-d' 'zend_extension=xdebug.so'"];
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$argv['--passthru-php'] = str_replace('\'', '"', $argv['--passthru-php']);
}

$options = $this->createOptionsFromArgv($argv);

Expand Down
4 changes: 0 additions & 4 deletions test/Unit/WrapperRunner/WrapperRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use function array_diff;
use function array_reverse;
use function array_unique;
use function defined;
use function explode;
use function file_get_contents;
use function file_put_contents;
Expand Down Expand Up @@ -223,9 +222,6 @@ public function testPassthrus(): void
self::assertSame(RunnerInterface::FAILURE_EXIT, $runnerResult->exitCode);

$this->bareOptions['--passthru-php'] = sprintf("'-d' 'highlight.comment=%s'", self::PASSTHRU_PHP_CUSTOM);
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->bareOptions['--passthru-php'] = str_replace('\'', '"', $this->bareOptions['--passthru-php']);
}

$runnerResult = $this->runRunner();
self::assertSame(RunnerInterface::SUCCESS_EXIT, $runnerResult->exitCode);
Expand Down

0 comments on commit 90a0ba2

Please sign in to comment.