mageekguy\atoum\tests\units\asserters\dateTime::testIsImmutableLt55 PHP Method

testIsImmutableLt55() public method

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