public function testNotEndWith() { $this->if($asserter = new sut($generator = new asserter\generator()))->then->exception(function () use($asserter) { $asserter->notEndWith(uniqid()); })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic')->hasMessage('Value is undefined')->if($asserter->setWith($string = __METHOD__))->and($fragment = __FUNCTION__)->then->exception(function () use($asserter, $fragment) { $asserter->notEndWith($fragment); })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage(sprintf($this->getLocale()->_('String end with %s'), $fragment))->object($asserter->notEndWith(uniqid()))->isIdenticalTo($asserter); }