public function testIsEmpty() { $this->if($asserter = new sut($generator = new asserter\generator()))->then->exception(function () use($asserter) { $asserter->isEmpty(); })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic')->hasMessage('Value is undefined')->if($asserter->setWith($string = uniqid()))->and($diff = new diffs\variable())->then->exception(function () use($asserter) { $asserter->isEmpty(); })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($generator->getLocale()->_('strings are not equals') . PHP_EOL . $diff->setExpected('')->setActual($string))->if($asserter->setWith(''))->then->object($asserter->isEmpty())->isIdenticalTo($asserter); }