Permalink
Browse files

declare(strict_types=1);

  • Loading branch information...
dg committed Mar 21, 2018
1 parent 85fb7aa commit 321e46ac0eb3b864e5e82b4e6fd1d29ccb9c63e9
Showing with 212 additions and 2 deletions.
  1. +2 βˆ’2 .travis.yml
  2. +2 βˆ’0 src/CodeCoverage/Collector.php
  3. +2 βˆ’0 src/CodeCoverage/Generators/AbstractGenerator.php
  4. +2 βˆ’0 src/CodeCoverage/Generators/CloverXMLGenerator.php
  5. +2 βˆ’0 src/CodeCoverage/Generators/HtmlGenerator.php
  6. +2 βˆ’0 src/CodeCoverage/PhpParser.php
  7. +2 βˆ’0 src/Framework/Assert.php
  8. +2 βˆ’0 src/Framework/AssertException.php
  9. +2 βˆ’0 src/Framework/DataProvider.php
  10. +2 βˆ’0 src/Framework/DomQuery.php
  11. +2 βˆ’0 src/Framework/Dumper.php
  12. +2 βˆ’0 src/Framework/Environment.php
  13. +2 βˆ’0 src/Framework/FileMock.php
  14. +2 βˆ’0 src/Framework/FileMutator.php
  15. +2 βˆ’0 src/Framework/Helpers.php
  16. +2 βˆ’0 src/Framework/TestCase.php
  17. +2 βˆ’0 src/Runner/CliTester.php
  18. +2 βˆ’0 src/Runner/CommandLine.php
  19. +2 βˆ’0 src/Runner/Job.php
  20. +2 βˆ’0 src/Runner/Output/ConsolePrinter.php
  21. +2 βˆ’0 src/Runner/Output/JUnitPrinter.php
  22. +2 βˆ’0 src/Runner/Output/Logger.php
  23. +2 βˆ’0 src/Runner/Output/TapPrinter.php
  24. +2 βˆ’0 src/Runner/OutputHandler.php
  25. +2 βˆ’0 src/Runner/PhpInterpreter.php
  26. +2 βˆ’0 src/Runner/Runner.php
  27. +2 βˆ’0 src/Runner/Test.php
  28. +2 βˆ’0 src/Runner/TestHandler.php
  29. +2 βˆ’0 src/Runner/info.php
  30. +2 βˆ’0 src/bootstrap.php
  31. +2 βˆ’0 src/tester
  32. +2 βˆ’0 src/tester.php
  33. +2 βˆ’0 tests/CodeCoverage/CloverXMLGenerator.phpt
  34. +2 βˆ’0 tests/CodeCoverage/Collector.phpt
  35. +2 βˆ’0 tests/CodeCoverage/PhpParser.parse.edge.phpt
  36. +2 βˆ’0 tests/CodeCoverage/PhpParser.parse.lines-of-code.phpt
  37. +2 βˆ’0 tests/CodeCoverage/PhpParser.parse.lines.phpt
  38. +2 βˆ’0 tests/CodeCoverage/PhpParser.parse.methods.phpt
  39. +2 βˆ’0 tests/CodeCoverage/PhpParser.parse.namespaces.phpt
  40. +2 βˆ’0 tests/Framework/Assert.contains.phpt
  41. +2 βˆ’0 tests/Framework/Assert.count.phpt
  42. +2 βˆ’0 tests/Framework/Assert.equal.phpt
  43. +2 βˆ’0 tests/Framework/Assert.equal.recursive.phpt
  44. +2 βˆ’0 tests/Framework/Assert.error.phpt
  45. +2 βˆ’0 tests/Framework/Assert.exception.phpt
  46. +2 βˆ’0 tests/Framework/Assert.false.phpt
  47. +2 βˆ’0 tests/Framework/Assert.match.phpt
  48. +2 βˆ’0 tests/Framework/Assert.match.regexp.phpt
  49. +2 βˆ’0 tests/Framework/Assert.nan.phpt
  50. +2 βˆ’0 tests/Framework/Assert.noError.phpt
  51. +2 βˆ’0 tests/Framework/Assert.null.phpt
  52. +2 βˆ’0 tests/Framework/Assert.same.phpt
  53. +2 βˆ’0 tests/Framework/Assert.true.phpt
  54. +2 βˆ’0 tests/Framework/Assert.truthy.phpt
  55. +2 βˆ’0 tests/Framework/Assert.type.phpt
  56. +2 βˆ’0 tests/Framework/DataProvider.load.phpt
  57. +2 βˆ’0 tests/Framework/DataProvider.parseAnnotation.phpt
  58. +2 βˆ’0 tests/Framework/DataProvider.testQuery.phpt
  59. +2 βˆ’0 tests/Framework/DomQuery.css2Xpath.phpt
  60. +2 βˆ’0 tests/Framework/DomQuery.fromHtml.phpt
  61. +2 βˆ’0 tests/Framework/DomQuery.fromXml.phpt
  62. +2 βˆ’0 tests/Framework/Dumper.color.phpt
  63. +2 βˆ’0 tests/Framework/Dumper.dumpException.phpt
  64. +2 βˆ’0 tests/Framework/Dumper.toLine.phpt
  65. +2 βˆ’0 tests/Framework/Dumper.toPhp.php7.phpt
  66. +2 βˆ’0 tests/Framework/Dumper.toPhp.phpt
  67. +2 βˆ’0 tests/Framework/Dumper.toPhp.recursion.phpt
  68. +2 βˆ’0 tests/Framework/FileMock.phpt
  69. +2 βˆ’0 tests/Framework/FileMutator.errors.phpt
  70. +2 βˆ’0 tests/Framework/FileMutator.phpt
  71. +2 βˆ’0 tests/Framework/Helpers.escapeArg.phpt
  72. +2 βˆ’0 tests/Framework/Helpers.parseDocComment.phpt
  73. +2 βˆ’0 tests/Framework/TestCase.annotationThrows.phpt
  74. +2 βˆ’0 tests/Framework/TestCase.annotationThrows.setUp.tearDown.phpt
  75. +2 βˆ’0 tests/Framework/TestCase.annotationThrows.syntax.phpt
  76. +2 βˆ’0 tests/Framework/TestCase.basic.phpt
  77. +2 βˆ’0 tests/Framework/TestCase.dataProvider.generator.phpt
  78. +2 βˆ’0 tests/Framework/TestCase.dataProvider.phpt
  79. +2 βˆ’0 tests/Framework/TestCase.errors.1.phpt
  80. +2 βˆ’0 tests/Framework/TestCase.errors.2.phpt
  81. +2 βˆ’0 tests/Framework/TestCase.errors.3.phpt
  82. +2 βˆ’0 tests/Framework/TestCase.errors.4.phpt
  83. +2 βˆ’0 tests/Framework/TestCase.errors.5.phpt
  84. +2 βˆ’0 tests/Framework/TestCase.errors.6.phpt
  85. +2 βˆ’0 tests/Framework/TestCase.invalidMethods.phpt
  86. +2 βˆ’0 tests/Framework/TestCase.invalidProvider.phpt
  87. +2 βˆ’0 tests/Framework/TestCase.order.errorMuted.phpt
  88. +2 βˆ’0 tests/Framework/TestCase.order.phpt
  89. +2 βˆ’0 tests/Framework/TestCase.ownErrorHandler.phpt
  90. +2 βˆ’0 tests/Runner/CommandLine.phpt
  91. +2 βˆ’0 tests/Runner/Job.phpt
  92. +2 βˆ’0 tests/Runner/Job.test.phptx
  93. +2 βˆ’0 tests/Runner/PhpInterpreter.Zend.phpt
  94. +2 βˆ’0 tests/Runner/PhpInterpreter.phpt
  95. +2 βˆ’0 tests/Runner/Runner.annotations.phpt
  96. +2 βˆ’0 tests/Runner/Runner.edge.phpt
  97. +2 βˆ’0 tests/Runner/Runner.environment.phpt
  98. +2 βˆ’0 tests/Runner/Runner.find-tests.phpt
  99. +2 βˆ’0 tests/Runner/Runner.misc.phpt
  100. +2 βˆ’0 tests/Runner/Runner.multiple-fails.phpt
  101. +2 βˆ’0 tests/Runner/Runner.multiple.phpt
  102. +2 βˆ’0 tests/Runner/Runner.stop-on-fail.phpt
  103. +2 βˆ’0 tests/Runner/Test.phpt
  104. +2 βˆ’0 tests/RunnerOutput/OutputHandlers.phpt
  105. +2 βˆ’0 tests/bootstrap.php
  106. +2 βˆ’0 tools/create-phar/create-phar.php
@@ -29,11 +29,11 @@ jobs:
php: 7.1
install:
# Install Nette Code Checker
- travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress
- travis_retry composer create-project nette/code-checker temp/code-checker ^3.0 --no-progress
# Install Nette Coding Standard
- travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress
script:
- php temp/code-checker/src/code-checker.php --short-arrays
- php temp/code-checker/src/code-checker.php --strict-types -i "tests/*/fixtures*" -i tests/Runner/find-tests
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon;


@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\CodeCoverage;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\CodeCoverage\Generators;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\CodeCoverage\Generators;
use DOMDocument;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\CodeCoverage\Generators;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\CodeCoverage;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
use Tester\CodeCoverage;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
use Tester\Helpers;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner\Output;
use Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner\Output;
use Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner\Output;
use Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner\Output;
use Tester;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
use Tester\Helpers;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
use Tester\Environment;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Tester\Runner;
use Tester;
@@ -4,6 +4,8 @@
* @internal
*/
declare(strict_types=1);
$isPhpDbg = defined('PHPDBG_VERSION');
$extensions = get_loaded_extensions();
natcasesort($extensions);
@@ -4,6 +4,8 @@
* Test environment initialization.
*/
declare(strict_types=1);
require __DIR__ . '/Framework/Helpers.php';
require __DIR__ . '/Framework/Environment.php';
require __DIR__ . '/Framework/DataProvider.php';
@@ -1,4 +1,6 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
require __DIR__ . '/tester.php';
@@ -5,6 +5,8 @@
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
require __DIR__ . '/Runner/Test.php';
require __DIR__ . '/Runner/PhpInterpreter.php';
require __DIR__ . '/Runner/Runner.php';
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Tester\CodeCoverage;
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Tester\CodeCoverage;
use Tester\FileMock;
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Tester\CodeCoverage;
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Tester\CodeCoverage;
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Tester\CodeCoverage;
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Tester\CodeCoverage;
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Tester\CodeCoverage;
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
@@ -4,6 +4,8 @@
* @testCase
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
Oops, something went wrong.

0 comments on commit 321e46a

Please sign in to comment.