disableAutoBind() public method

public disableAutoBind ( )
Ejemplo n.º 1
0
 /** @php 5.4 */
 public function testDisableAutoBind()
 {
     $this->if($mockController = new testedClass())->then->object($mockController->disableAutoBind())->isIdenticalTo($mockController)->boolean($mockController->autoBindIsEnabled())->isFalse()->if($mockController->enableAutoBind())->then->object($mockController->disableAutoBind())->isIdenticalTo($mockController)->boolean($mockController->autoBindIsEnabled())->isFalse()->if($mockController->enableAutoBind())->and($mockController->doesSomething = function () {
         return $this;
     })->and($mock = new \mock\mageekguy\atoum\tests\units\mock\foo($mockController))->then->object($mockController->disableAutoBind())->isIdenticalTo($mockController)->boolean($mockController->autoBindIsEnabled())->isFalse()->boolean(isset($mockController->doesSomething))->isFalse();
 }