public function testHasMinutes()
{
$this->given($asserter = $this->newTestedInstance->setLocale($locale = new \mock\atoum\locale()))->then->exception(function () use($asserter) {
$asserter->hasMinutes(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('01:02:03')))->then->object($asserter->hasMinutes('02'))->isIdenticalTo($asserter)->object($asserter->hasMinutes('2'))->isIdenticalTo($asserter)->object($asserter->hasMinutes(2))->isIdenticalTo($asserter)->if($this->calling($locale)->_ = $badMinutes = uniqid())->then->exception(function () use($asserter) {
$asserter->hasMinutes(1);
})->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($badMinutes)->mock($locale)->call('_')->withArguments('Minutes are %s instead of %02d', 2, 1)->once->exception(function () use($asserter, &$failMessage) {
$asserter->hasMinutes(1, $failMessage = uniqid());
})->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($failMessage);
}