Skip to content

Commit

Permalink
Remove duplicate assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
omitobi committed Apr 22, 2020
1 parent c2b58b6 commit 6c6693d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/PiperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,9 @@ public function testAcceptingFunctionAndParametersInToMethod()
->up()
);

$this->assertSame(
[0 => 'ADE'],
piper(['name' => 'ade', 'age' => 5])
->to('array_flip')
->to('array_keys')
->to('array_map', fn($val) => strtoupper($val))
->to('array_intersect', [0 => 'ADE'])()
);

$this->assertSame(
['ADE'],
piper(['ade', 'tobi'])
piper(['name' => 'ade', 'hobby' => 'coding'])
->to('array_flip')
->to('array_keys')
->to('array_map', fn($val) => strtoupper($val))
Expand Down

0 comments on commit 6c6693d

Please sign in to comment.