mageekguy\atoum\asserters\error::withAnyType PHP Method

withAnyType() public method

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

Usage Example

コード例 #1
0
ファイル: error.php プロジェクト: ronan-gloo/atoum
 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();
 }