public function testHasDay()
{
$this->given($asserter = $this->newTestedInstance->setLocale($locale = new \mock\atoum\locale()))->then->exception(function () use($asserter) {
$asserter->hasDay(rand(0, PHP_INT_MAX));
})->isInstanceOf('mageekguy\\atoum\\exceptions\\logic')->hasMessage('Value is not an instance of \\dateTime or \\dateTimeInterface')->if($asserter->setWith($dateTime = new \DateTime('1976-10-06')))->then->object($asserter->hasDay('06'))->isIdenticalTo($asserter)->object($asserter->hasDay('6'))->isIdenticalTo($asserter)->object($asserter->hasDay(6))->isIdenticalTo($asserter)->if($this->calling($locale)->_ = $badDay = uniqid())->then->exception(function () use($asserter) {
$asserter->hasDay(1);
})->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($badDay)->mock($locale)->call('_')->withArguments('Day is %s instead of %02d', '06', 1)->once->exception(function () use($asserter, &$failMessage) {
$asserter->hasDay(1, $failMessage = uniqid());
})->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($failMessage);
}