Exemplo n.º 1
0
 public function testNotStartWith()
 {
     $this->if($asserter = new sut($generator = new asserter\generator()))->then->exception(function () use($asserter) {
         $asserter->notStartWith(uniqid());
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic')->hasMessage('Value is undefined')->if($asserter->setWith($string = __METHOD__))->then->exception(function () use($asserter, &$fragment) {
         $asserter->notStartWith($fragment = __NAMESPACE__);
     })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage(sprintf($this->getLocale()->_('String start with %s'), $fragment))->object($asserter->notStartWith(uniqid()))->isIdenticalTo($asserter);
 }