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

testSetWithPhpLt55() public method

public testSetWithPhpLt55 ( mageekguy\atoum\locale $locale )
$locale mageekguy\atoum\locale
        public function testSetWithPhpLt55(atoum\locale $locale)
        {
            $this->given($this->newTestedInstance->setLocale($locale), $this->calling($locale)->_ = $notDatetime = uniqid())->then->exception(function ($test) use(&$value) {
                $test->testedInstance->setWith($value = new \mock\dateTimeInterface());
            })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($notDatetime)->mock($locale)->call('_')->withArguments('%s is not an instance of \\dateTime', $this->testedInstance)->once->object($this->testedInstance->getValue())->isEqualTo($value);
        }