Skip to content

Commit

Permalink
Merge pull request #3 from jubianchi/constant_mocker
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
Hywan committed Nov 25, 2015
2 parents 55db167 + 42434e3 commit 0219a87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/units/classes/php/mocker/constant.php
Expand Up @@ -17,7 +17,7 @@ public function test__set()
->given(
$this->newTestedInstance,
$adapter = new atoum\test\adapter(),
php\mocker::setAdapter($adapter)
php\mocker\constant::setAdapter($adapter)
)

->if(
Expand Down Expand Up @@ -48,15 +48,15 @@ public function test__get()
->given(
$this->newTestedInstance,
$adapter = new atoum\test\adapter(),
php\mocker::setAdapter($adapter)
php\mocker\constant::setAdapter($adapter)
)

->if(
$adapter->defined = false,
$this->testedInstance->setDefaultNameSpace($namespace = uniqid())
)
->then
->exception(function(atoum\test $test) use (& $constant, & $value) {
->exception(function(atoum\test $test) use (& $constant) {
$test->testedInstance->{$constant = uniqid()};
}
)
Expand All @@ -83,7 +83,7 @@ public function test__isset()
->given(
$this->newTestedInstance,
$adapter = new atoum\test\adapter(),
php\mocker::setAdapter($adapter)
php\mocker\constant::setAdapter($adapter)
)

->if(
Expand Down

0 comments on commit 0219a87

Please sign in to comment.