mageekguy\atoum\asserters\variable::wasSet PHP Method

wasSet() public method

public wasSet ( )
    public function wasSet()
    {
        return $this->isSet === true;
    }

Usage Example

Exemplo n.º 1
0
 public function testIsNotTrue()
 {
     $this->if($asserter = new sut($generator = new asserter\generator()))->then->boolean($asserter->wasSet())->isFalse()->exception(function () use($asserter) {
         $asserter->isNotNull(rand(-PHP_INT_MAX, PHP_INT_MAX));
     })->isInstanceOf('logicException')->hasMessage('Value is undefined')->if($asserter->setWith(uniqid()))->then->object($asserter->isNotTrue())->isIdenticalTo($asserter)->if($asserter->setWith(true))->then->exception(function () use($asserter) {
         $asserter->isNotTrue();
     })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage(sprintf($generator->getLocale()->_('%s is true'), $asserter));
 }
All Usage Examples Of mageekguy\atoum\asserters\variable::wasSet