setIncluder() public method

public setIncluder ( includer $includer = null )
$includer includer
Beispiel #1
0
 public function testGetBootstrapFile()
 {
     $this->if($runner = new testedClass())->and($includer = new \mock\mageekguy\atoum\includer())->and($includer->getMockController()->includePath = function () {
     })->and($runner->setIncluder($includer))->then->object($runner->setBootstrapFile($path = uniqid()))->isIdenticalTo($runner)->string($runner->getBootstrapFile())->isEqualTo($path)->mock($includer)->call('includePath')->withArguments($path)->once();
 }