mageekguy\atoum\tests\units\asserters\phpFloat::testSetWith PHP Method

testSetWith() public method

public testSetWith ( )
    public function testSetWith()
    {
        $this->given($asserter = $this->newTestedInstance->setLocale($locale = new \mock\atoum\locale())->setAnalyzer($analyzer = new \mock\atoum\tools\variable\analyzer()))->if($this->calling($locale)->_ = $notFloat = uniqid(), $this->calling($analyzer)->getTypeOf = $badType = uniqid())->then->exception(function () use($asserter, &$value) {
            $asserter->setWith($value = uniqid());
        })->isInstanceOf('mageekguy\\atoum\\asserter\\exception')->hasMessage($notFloat)->mock($locale)->call('_')->withArguments('%s is not a float', $badType)->once->mock($analyzer)->call('getTypeOf')->withArguments($value)->once->string($asserter->getValue())->isEqualTo($value)->object($asserter->setWith($value = (double) rand(-PHP_INT_MAX, PHP_INT_MAX)))->isIdenticalTo($asserter)->float($asserter->getValue())->isEqualTo($value);
    }