Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ matrix:
env:
- CODE_COVERAGE="0"
- BENCHMARK="0"
- IGNORE_PLATFORM_REQS="1"
allow_failures:
- php: nightly

Expand All @@ -49,7 +50,11 @@ install:
- if [ "${BENCHMARK}" == "0" ]; then
composer remove --dev phpbench/phpbench --no-update;
fi
- composer install -n
- if [ "${IGNORE_PLATFORM_REQS}" == "1" ]; then
composer install -n --ignore-platform-reqs;
else
composer install -n;
fi

script:
- if [ "$CODE_COVERAGE" == "1" ]; then
Expand Down
4 changes: 0 additions & 4 deletions bench/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@
. "Current ini setting: zend.assertions = {$zendassertions}]" . PHP_EOL;
exit(1);
}
assert_options(ASSERT_ACTIVE, 0);
assert_options(ASSERT_WARNING, 0);
assert_options(ASSERT_BAIL, 0);
assert_options(ASSERT_QUIET_EVAL, 0);

require_once __DIR__ . '/../vendor/autoload.php';
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}],
"license": "BSD-3-Clause",
"require": {
"php": ">=7.1",
"php": "^7.1 | ^8.0",
"ext-reflection": "*"
},
"require-dev": {
Expand Down
13 changes: 0 additions & 13 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@
exit(1);
}

// activate assertions
assert_options(ASSERT_ACTIVE, 1);
assert_options(ASSERT_WARNING, 0);
assert_options(ASSERT_BAIL, 0);
assert_options(ASSERT_QUIET_EVAL, 0);
if (!class_exists('AssertionError')) {
// AssertionError has been added in PHP-7.0
class AssertionError extends Exception {};
}
assert_options(ASSERT_CALLBACK, function($file, $line, $code) {
throw new AssertionError("assert(): Assertion '{$code}' failed in {$file} on line {$line}");
});

// installed itself
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require_once __DIR__ . '/../vendor/autoload.php';
Expand Down