Skip to content

Commit 3c3da51

Browse files
authored
Merge pull request #342 from alexpott/PHP71-NavigationTest
Fix NavigationTest::testLinks on PHP 7.1
2 parents 0dee8cc + f17af62 commit 3c3da51

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
coverage: "none"
3636
php-version: "${{ matrix.php }}"
3737
tools: composer
38+
# PHP 7.1 development web server segfaults if timezone not set.
39+
ini-values: date.timezone=Europe/Paris, error_reporting=-1, display_errors=On
3840

3941
- name: Configure for PHP >= 7.1
4042
if: "${{ matrix.php >= '7.1' }}"
@@ -46,8 +48,10 @@ jobs:
4648
composer update --no-interaction --prefer-dist
4749
4850
- name: Setup Mink test server
51+
# PHP 7.1 development web server segfaults if USE_ZEND_ALLOC not set to 0.
4952
run: |
5053
mkdir ./logs
54+
export USE_ZEND_ALLOC=0
5155
./vendor/bin/mink-test-server &> ./logs/mink-test-server.log &
5256
5357
- name: Start Selenium

tests/Selenium2Config.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ public function skipMessage($testCase, $test)
4242
return 'Maximizing the window does not work when running the browser in Xvfb.';
4343
}
4444

45-
if (
46-
'Behat\Mink\Tests\Driver\Basic\NavigationTest' === $testCase
47-
&& (0 === strpos($test, 'testLinks'))
48-
&& 'true' === getenv('GITHUB_ACTIONS')
49-
&& '7.1' === getenv('MATRIX_PHP')
50-
) {
51-
return 'Skipping basic NavigationTest::testLinks on PHP 7.1';
52-
}
53-
5445
return parent::skipMessage($testCase, $test);
5546
}
5647

0 commit comments

Comments
 (0)