Skip to content

Commit

Permalink
Fix: Run 'tools/php-cs-fixer fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Sep 24, 2022
1 parent 2b5cb60 commit 0869792
Show file tree
Hide file tree
Showing 16 changed files with 221 additions and 208 deletions.
412 changes: 206 additions & 206 deletions src/Framework/Assert/Functions.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Framework/TestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use const PHP_EOL;
use function array_keys;
use function array_merge;
use function array_slice;
use function basename;
use function call_user_func;
use function class_exists;
Expand Down
1 change: 1 addition & 0 deletions src/Runner/DefaultTestResultCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use function is_file;
use function json_decode;
use function json_encode;
use function sprintf;
use PHPUnit\Util\Filesystem;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/regression/4663/Issue4663Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function testTestThatExpectsAnErrorPassesWhenTheErrorOccurs(): void
{
$this->expectError();

implode('', [new stdClass]);
\implode('', [new stdClass]);
}
}
2 changes: 1 addition & 1 deletion tests/end-to-end/regression/873/Issue873Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/
if (\extension_loaded('xdebug') && \version_compare(\phpversion('xdebug'), '3', '<')) {
\xdebug_disable();
xdebug_disable();
}

throw new Exception(
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/Constraint/ClassHasAttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Framework\Constraint;

use function sprintf;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestFailure;
use PHPUnit\TestFixture\ClassWithNonPublicAttributes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Framework\Constraint;

use function sprintf;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestFailure;
use PHPUnit\TestFixture\ClassWithNonPublicAttributes;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/Constraint/IsIdenticalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Framework\Constraint;

use function sprintf;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestFailure;
use stdClass;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/Constraint/IsInstanceOfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Framework\Constraint;

use function sprintf;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestFailure;
use ReflectionException;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/Constraint/ObjectHasAttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Framework\Constraint;

use function sprintf;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestFailure;
use PHPUnit\TestFixture\ClassWithNonPublicAttributes;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/ConstraintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace PHPUnit\Framework;

use function preg_replace;
use function sprintf;
use ArrayObject;
use Countable;
use PHPUnit\Framework\Constraint\Count;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
namespace PHPUnit\Framework\MockObject;

use function sprintf;
use PHPUnit\Framework\Constraint\IsEqual;
use PHPUnit\Framework\MockObject\Builder\InvocationMocker;
use PHPUnit\Framework\MockObject\Stub\ReturnSelf;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/MockObject/MockBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
namespace PHPUnit\Framework\MockObject;

use function sprintf;
use ACustomClassName;
use PHPUnit\Framework\TestCase;
use PHPUnit\TestFixture\Mockable;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/MockObject/MockObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use function func_get_args;
use function get_class;
use function get_parent_class;
use function sprintf;
use Exception;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestCase;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Framework/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use function getcwd;
use function ini_get;
use function ini_set;
use function sprintf;
use function trigger_error;
use InvalidArgumentException;
use PHPUnit\Framework\MockObject\MockObject;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Runner/TestSuiteSorterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace PHPUnit\Runner;

use function mt_srand;
use function sprintf;
use MultiDependencyTest;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\TestSuite;
Expand Down

0 comments on commit 0869792

Please sign in to comment.