Skip to content

Commit

Permalink
Skip less E2E tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored and sebastianbergmann committed Nov 30, 2023
1 parent 9e39cfb commit de55276
Show file tree
Hide file tree
Showing 103 changed files with 0 additions and 516 deletions.
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/fail-on/fail-on-deprecation.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Test Runner exits with shell exit code indicating failure when all tests are successful but at least one test triggered a deprecation
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/fail-on/fail-on-incomplete.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Test Runner exits with shell exit code indicating failure when all tests are successful but at least one test was marked incomplete
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/fail-on/fail-on-notice.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Test Runner exits with shell exit code indicating failure when all tests are successful but at least one test triggered a notice
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/fail-on/fail-on-risky.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Test Runner exits with shell exit code indicating failure when all tests are successful but at least one test was considered risky
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/fail-on/fail-on-skipped.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Test Runner exits with shell exit code indicating failure when all tests are successful but at least one test was skipped
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/fail-on/fail-on-warning.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Test Runner exits with shell exit code indicating failure when all tests are successful but at least one warning was triggered
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/filter/filter-class-match-argument.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter FooTest tests/FooTest.php
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter FooTest
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter BarTest tests/FooTest.php
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter BarTest
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/filter/filter-method-match-argument.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter testOne tests/FooTest.php
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter testOne
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter testFoo tests/FooTest.php
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --filter testFoo
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/group/exclude-group-argument.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --exclude-group one,two tests/FooTest.php
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/group/exclude-group-configuration.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --exclude-group one,two
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/group/group-argument.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --group one tests/FooTest.php
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/group/group-configuration.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --group one
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/log-events-text.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --no-output --log-events-text logfile.txt
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/log-events-verbose-text.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit --no-output --log-events-verbose-text logfile.txt
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/no-log-no-cc.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
phpunit -c _files/phpunit.xml --no-logging --log-junit php://stdout _files/NoLogNoCcTest.php
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$logfile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-defect-for-error.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first error works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-defect-for-failure.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first failure works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-defect-for-risky.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first risky test works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-defect-for-warning.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first warning works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-deprecation.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first deprecation works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-error.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first error works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-failure.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first failure works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-incomplete.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first incomplete test works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-notice.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first notice works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-risky.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first risky test works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-skipped.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first skipped test works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
5 changes: 0 additions & 5 deletions tests/end-to-end/cli/stop-on/stop-on-warning.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
Stopping test execution after first warning works
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
4 changes: 0 additions & 4 deletions tests/end-to-end/event/assert-failure.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ if (ini_get('zend.assertions') != 1) {
if (ini_get('assert.exception') != 1) {
print 'skip: assert.exception=1 is required' . PHP_EOL;
}

if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
The right events are emitted in the right order for a test that fails because of an assertion failure in a "after test" method
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
--TEST--
The right events are emitted in the right order for a test that fails because of an assertion failure in a "before test" method
--SKIPIF--
<?php declare(strict_types=1);
if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
--FILE--
<?php declare(strict_types=1);
$traceFile = tempnam(sys_get_temp_dir(), __FILE__);
Expand Down

0 comments on commit de55276

Please sign in to comment.