Skip to content

Commit

Permalink
Fixed a typo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
letnando committed Mar 7, 2019
1 parent 9a11619 commit 6173c2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ConstantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ final class ConstantTest extends PHPUnit_Framework_TestCase
public function it_should_return_a_value()
{
$value = 5;
$pureClosure = constant($value);
$constantClosure = constant($value);

$this->assertSame($value, $pureClosure());
$this->assertSame($value, $constantClosure());
}

/** @test */
public function it_should_return_same_value_if_called_twice()
{
$value = 5;
$pureClosure = constant($value);
$constantClosure = constant($value);

$pureClosure();
$constantClosure();

$this->assertSame($value, $pureClosure());
$this->assertSame($value, $constantClosure());
}
}

0 comments on commit 6173c2b

Please sign in to comment.