public testIsImmutable ( mageekguy\atoum\locale $locale ) | ||
$locale | mageekguy\atoum\locale |
public function testIsImmutable(atoum\locale $locale)
{
$this->given($this->newTestedInstance->setLocale($locale), $this->calling($locale)->_ = $notImmutable = uniqid())->if($this->testedInstance->setWith($value = new \dateTime()))->then->exception(function ($test) use(&$value) {
$test->testedInstance->isImmutable();
})->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($notImmutable);
}