Пример #1
0
<?php

use mageekguy\atoum;
use mageekguy\atoum\scripts;
if (defined('mageekguy\\atoum\\scripts\\runner') === true) {
    scripts\runner::addConfigurationCallable(function (atoum\configurator $script, atoum\runner $runner) {
        $extension = new atoum\visibility\extension($script);
        $extension->addToRunner($runner);
    });
}
Пример #2
0
 public function testSetTest()
 {
     $this->if($extension = new testedClass())->and($test = new \mock\mageekguy\atoum\test())->and($manager = new \mock\mageekguy\atoum\test\assertion\manager())->and($test->setAssertionManager($manager))->then->object($extension->setTest($test))->isIdenticalTo($extension)->mock($manager)->call('setHandler')->withArguments('invoke')->once();
 }