mageekguy\atoum\asserters\error::withType PHP Метод

withType() публичный Метод

public withType ( $type )
    public function withType($type)
    {
        $this->type = $type;
        return $this;
    }

Usage Example

Пример #1
0
 public function testWithAnyType()
 {
     $this->if($asserter = new asserters\error(new asserter\generator()))->and($asserter->withType(rand(1, PHP_INT_MAX)))->then->variable($asserter->getType())->isNotNull()->object($asserter->withAnyType())->isIdenticalTo($asserter)->variable($asserter->getType())->isNull();
 }