Skip to content

Commit ccca1bd

Browse files
committed
Skip FuzzyTest on Windows
1 parent 2542ebb commit ccca1bd

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
check: lint cs tests phpstan
33

44
.PHONY: tests
5-
tests: build-abnfgen
5+
tests:
66
php vendor/bin/phpunit
77

88
.PHONY: lint
@@ -34,7 +34,3 @@ phpstan:
3434
.PHONY: phpstan-generate-baseline
3535
phpstan-generate-baseline:
3636
php vendor/bin/phpstan --generate-baseline
37-
38-
.PHONY: build-abnfgen
39-
build-abnfgen:
40-
./build-abnfgen.sh

tests/PHPStan/Parser/FuzzyTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use function sprintf;
1414
use function unlink;
1515

16+
/**
17+
* @requires OS ^(?!win)
18+
*/
1619
class FuzzyTest extends TestCase
1720
{
1821

tests/bootstrap.php

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
<?php declare(strict_types = 1);
22

33
require __DIR__ . '/../vendor/autoload.php';
4+
5+
if (DIRECTORY_SEPARATOR !== '\\') {
6+
exec(__DIR__ . '/../build-abnfgen.sh', $buildAbnfgenOutput, $buildAbnfgenExitCode);
7+
}

0 commit comments

Comments
 (0)