Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo FIDRY committed Sep 30, 2017
1 parent b1bbc44 commit c5fb376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions tests/Scoper/PhpScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 */
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down
4 changes: 0 additions & 4 deletions tests/Scoper/TraverserFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5fb376

Please sign in to comment.