diff --git a/tests/Scoper/PhpScoperTest.php b/tests/Scoper/PhpScoperTest.php index ee99a441..03de9875 100644 --- a/tests/Scoper/PhpScoperTest.php +++ b/tests/Scoper/PhpScoperTest.php @@ -312,8 +312,8 @@ public function test_cannot_scope_an_invalid_PHP_file() public function test_creates_a_new_traverser_for_each_file() { $files = [ - 'file1.php' => 'file1', - 'file2.php' => 'file2', + 'file1.php' => 'file1', + 'file2.php' => 'file2', ]; $prefix = 'Humbug'; @@ -340,7 +340,7 @@ public function test_creates_a_new_traverser_for_each_file() new Name('file2'), ]) ; - + /** @var NodeTraverserInterface|ObjectProphecy $firstTraverserProphecy */ $firstTraverserProphecy = $this->prophesize(NodeTraverserInterface::class); /** @var NodeTraverserInterface $firstTraverser */ @@ -355,7 +355,7 @@ public function test_creates_a_new_traverser_for_each_file() $this->traverserFactoryProphecy ->create($prefix, $whitelist, Argument::that( function (...$args) use (&$i): bool { - $i++; + ++$i; return 1 === $i; } @@ -365,7 +365,7 @@ function (...$args) use (&$i): bool { $this->traverserFactoryProphecy ->create($prefix, $whitelist, Argument::that( function (...$args) use (&$i): bool { - $i++; + ++$i; return 4 === $i; } diff --git a/tests/Scoper/TraverserFactoryTest.php b/tests/Scoper/TraverserFactoryTest.php index fa00ab5e..2085bda6 100644 --- a/tests/Scoper/TraverserFactoryTest.php +++ b/tests/Scoper/TraverserFactoryTest.php @@ -16,11 +16,7 @@ use Humbug\PhpScoper\Scoper; use PHPUnit\Framework\TestCase; -use function Humbug\PhpScoper\create_fake_patcher; use function Humbug\PhpScoper\create_fake_whitelister; -use function Humbug\PhpScoper\escape_path; -use function Humbug\PhpScoper\make_tmp_dir; -use function Humbug\PhpScoper\remove_dir; /** * @covers \Humbug\PhpScoper\Scoper\TraverserFactory