Skip to content

Commit

Permalink
Fix: Add Windows-specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jun 29, 2020
1 parent 6fa45a3 commit 81f1544
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/end-to-end/cli/columns-max-windows.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--TEST--
phpunit --columns=max ../../_files/BankAccountTest.php
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = '--columns=max';
$_SERVER['argv'][3] = __DIR__ . '/../../_files/BankAccountTest.php';

require __DIR__ . '/../../bootstrap.php';
PHPUnit\TextUI\Command::main();
--SKIPIF--
<?php

if (PHP_OS_FAMILY !== 'Windows') {
die('Maximum column length resolves to different value on non-Windows systems');
}

?>
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

... 3 / 3 (100%)

Time: %s, Memory: %s

OK (3 tests, 3 assertions)

0 comments on commit 81f1544

Please sign in to comment.