Skip to content
Permalink
Browse files

Enable strict interpretation of scalar type declarations

  • Loading branch information...
sebastianbergmann committed May 19, 2019
1 parent 3a3159d commit 831aad46783815efa472762b02a2af05b094172c
Showing with 22 additions and 22 deletions.
  1. +1 −1 tests/_files/phpt-unsupported-section.phpt
  2. +1 −1 tests/end-to-end/_files/phpt-skipif-location-hint-example.phpt
  3. +1 −1 tests/end-to-end/assertion.phpt
  4. +1 −1 tests/end-to-end/code-coverage-ignore.phpt
  5. +1 −1 tests/end-to-end/code-coverage-phpt.phpt
  6. +1 −1 tests/end-to-end/disable-code-coverage-ignore.phpt
  7. +1 −1 tests/end-to-end/dump-xdebug-filter.phpt
  8. +1 −1 tests/end-to-end/execution-order/order-by-duration-via-cli.phpt
  9. +1 −1 tests/end-to-end/execution-order/order-by-duration-via-phpunit-xml.phpt
  10. +1 −1 tests/end-to-end/mock-objects/generator/wsdl_class.phpt
  11. +1 −1 tests/end-to-end/mock-objects/generator/wsdl_class_namespace.phpt
  12. +1 −1 tests/end-to-end/mock-objects/generator/wsdl_class_partial.phpt
  13. +1 −1 tests/end-to-end/phpt-parsing.phpt
  14. +1 −1 tests/end-to-end/regression/GitHub/1348.phpt
  15. +1 −1 tests/end-to-end/regression/GitHub/1351.phpt
  16. +1 −1 tests/end-to-end/regression/GitHub/2085-enforce-time-limit-options-via-config-without-invoker.phpt
  17. +1 −1 tests/end-to-end/regression/GitHub/2085-without-invoker.phpt
  18. +1 −1 tests/end-to-end/regression/GitHub/2085.phpt
  19. +1 −1 tests/end-to-end/regression/GitHub/2591-separate-function-no-preserve-no-bootstrap-php73.phpt
  20. +1 −1 tests/end-to-end/regression/GitHub/2591-separate-function-no-preserve-no-bootstrap-xdebug.phpt
  21. +1 −1 tests/end-to-end/regression/GitHub/2591-separate-function-no-preserve-no-bootstrap.phpt
  22. +1 −1 tests/end-to-end/regression/GitHub/873.phpt
@@ -1,7 +1,7 @@
--TEST--
PHPT runner handles unsupported --SECTION-- gracefully
--FILE--
<?php
<?php declare(strict_types=1);
echo "Hello world";
--GET--
Gerste, Hopfen und Wasser
@@ -4,7 +4,7 @@ PHPT skip condition results in correct code location hint
<?php declare(strict_types=1);
print "Nothing to see here, move along";
--SKIPIF--
<?php
<?php declare(strict_types=1);
print "skip: something terrible happened\n";
--EXPECT--
Nothing to see here, move along
@@ -1,7 +1,7 @@
--TEST--
phpunit AssertionExampleTest ../../_files/AssertionExampleTest.php
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (PHP_MAJOR_VERSION < 7) {
print 'skip: PHP 7 is required' . PHP_EOL;
}
@@ -1,7 +1,7 @@
--TEST--
phpunit --colors=never --coverage-text=php://stdout IgnoreCodeCoverageClassTest ../../_files/IgnoreCodeCoverageClassTest.php --whitelist ../../../tests/_files/IgnoreCodeCoverageClass.php
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('xdebug')) {
print 'skip: Extension xdebug is required.';
}
@@ -1,7 +1,7 @@
--TEST--
phpunit --colors=never --coverage-text=php://stdout ../../_files/phpt-for-coverage.phpt --whitelist ../../_files/CoveredClass.php
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('xdebug')) {
print 'skip: Extension xdebug is required.';
}
@@ -1,7 +1,7 @@
--TEST--
phpunit --colors=never --coverage-text=php://stdout --disable-coverage-ignore IgnoreCodeCoverageClassTest tests/_files/IgnoreCodeCoverageClassTest.php --whitelist ../../../tests/_files/IgnoreCodeCoverageClass.php
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('xdebug')) {
print 'skip: Extension xdebug is required.';
}
@@ -1,7 +1,7 @@
--TEST--
phpunit -c ../_files/configuration_whitelist.xml --dump-xdebug-filter 'php://stdout'
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('xdebug')) {
print 'skip: xdebug not loaded';
}
@@ -1,7 +1,7 @@
--TEST--
phpunit --order-by=duration ./tests/end-to-end/execution-order/_files/TestWithDifferentDurations.php
--FILE--
<?php
<?php declare(strict_types=1);
$tmpResultCache = tempnam(sys_get_temp_dir(), __FILE__);
file_put_contents($tmpResultCache, file_get_contents(__DIR__ . '/_files/TestWithDifferentDurations.phpunit.result.cache.txt'));
@@ -1,7 +1,7 @@
--TEST--
phpunit --configuration=order-by-duration.phpunit.xml
--FILE--
<?php
<?php declare(strict_types=1);
$tmpResultCache = tempnam(sys_get_temp_dir(), __FILE__);
file_put_contents($tmpResultCache, file_get_contents(__DIR__ . '/_files/TestWithDifferentDurations.phpunit.result.cache.txt'));
@@ -1,7 +1,7 @@
--TEST--
\PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
--FILE--
<?php declare(strict_types=1);
@@ -1,7 +1,7 @@
--TEST--
\PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
--FILE--
<?php declare(strict_types=1);
@@ -1,7 +1,7 @@
--TEST--
\PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch', array('doGoogleSearch'))
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
--FILE--
<?php declare(strict_types=1);
@@ -1,7 +1,7 @@
--TEST--
PHPT runner supports XFAIL section
--FILE--
<?php
<?php declare(strict_types=1);
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = '--verbose';
$_SERVER['argv'][3] = \realpath(__DIR__ . '/../_files/phpt-unsupported-section.phpt');
@@ -1,7 +1,7 @@
--TEST--
https://github.com/sebastianbergmann/phpunit/issues/1348
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (defined('HHVM_VERSION') || defined('PHPDBG_VERSION')) {
print 'skip: PHP runtime required';
}
@@ -1,7 +1,7 @@
--TEST--
https://github.com/sebastianbergmann/phpunit/issues/1351
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('pdo') || !in_array('sqlite', PDO::getAvailableDrivers())) {
print 'skip: PDO_SQLITE is required';
}
@@ -1,7 +1,7 @@
--TEST--
Test XML config enforceTimeLimit, defaultTimeLimit without php-invoker, with pcntl
--SKIPIF--
<?php
<?php declare(strict_types=1);
require __DIR__ . '/../../../bootstrap.php';
if (\class_exists(SebastianBergmann\Invoker\Invoker::class)) {
@@ -3,7 +3,7 @@ Test CLI flags --enforce-time-limit --default-time-limit without php-invoker, wi
--DESCRIPTION--
https://github.com/sebastianbergmann/phpunit/issues/2085
--SKIPIF--
<?php
<?php declare(strict_types=1);
require __DIR__ . '/../../../bootstrap.php';
if (\class_exists(SebastianBergmann\Invoker\Invoker::class)) {
@@ -3,7 +3,7 @@ Test CLI flags --enforce-time-limit --default-time-limit
--DESCRIPTION--
https://github.com/sebastianbergmann/phpunit/issues/2085
--SKIPIF--
<?php
<?php declare(strict_types=1);
require __DIR__ . '/../../../bootstrap.php';
if (!\class_exists(SebastianBergmann\Invoker\Invoker::class)) {
@@ -2,7 +2,7 @@
GH-2591: Test method process isolation without preserving global state and without loaded bootstrap.
Expected result is to have an error, because of no classes loaded.
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (extension_loaded('xdebug')) {
print 'skip: xdebug loaded';
} elseif (version_compare(PHP_VERSION, '7.3.0-dev', '<')) {
@@ -2,7 +2,7 @@
GH-2591: Test method process isolation without preserving global state and without loaded bootstrap.
Expected result is to have an error, because of no classes loaded.
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (!extension_loaded('xdebug')) {
print 'skip: xdebug not loaded';
} elseif (version_compare(PHP_VERSION, '7.3.0-dev', '>=')) {
@@ -2,7 +2,7 @@
GH-2591: Test method process isolation without preserving global state and without loaded bootstrap.
Expected result is to have an error, because of no classes loaded.
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (extension_loaded('xdebug')) {
print 'skip: xdebug loaded';
} elseif (version_compare(PHP_VERSION, '7.3.0-dev', '>=')) {
@@ -1,7 +1,7 @@
--TEST--
GH-873: PHPUnit suppresses exceptions thrown outside of test case function
--SKIPIF--
<?php
<?php declare(strict_types=1);
if (PHP_MAJOR_VERSION < 7) {
print 'skip: PHP 7 is required';
}

0 comments on commit 831aad4

Please sign in to comment.
You can’t perform that action at this time.