mageekguy\atoum\tests\units\test\adapter::testHasAfterCalls PHP Méthode

testHasAfterCalls() public méthode

public testHasAfterCalls ( )
        public function testHasAfterCalls()
        {
            $this->if($calls = new \mock\mageekguy\atoum\test\adapter\calls())->and($this->calling($calls)->hasAfter = $has = (bool) rand(0, 1))->and($adapter = new testedClass())->and($adapter->setCalls($calls))->then->boolean($adapter->hasAfterCalls($call = new call('md5'), $position = rand(1, PHP_INT_MAX)))->isEqualTo($has)->mock($calls)->call('hasAfter')->withArguments($call, $position, false)->once()->boolean($adapter->hasAfterCalls($call = new call('md5'), $position = rand(1, PHP_INT_MAX), true))->isEqualTo($has)->mock($calls)->call('hasAfter')->withArguments($call, $position, true)->once();
        }