Пример #1
0
 public function testIsNotEmpty()
 {
     $this->if($asserter = new sut($generator = new asserter\generator()))->then->exception(function () use($asserter) {
         $asserter->isNotEmpty();
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic')->hasMessage('Value is undefined')->if($asserter->setWith(''))->and($diff = new diffs\variable())->then->exception(function () use($asserter) {
         $asserter->isNotEmpty();
     })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($generator->getLocale()->_('string is empty'))->if($asserter->setWith($string = uniqid()))->then->object($asserter->isNotEmpty())->isIdenticalTo($asserter);
 }