示例#1
0
 public function testSetTest()
 {
     $this->given($container = new ContainerBuilder(), $manager = new \mock\mageekguy\atoum\test\assertion\manager(), $test = new \mock\mageekguy\atoum\test(), $test->setAssertionManager($manager))->if($extension = new testedClass())->then->object($extension->setTest($test))->isIdenticalTo($extension)->mock($manager)->call('setHandler')->withArguments('containerBuilder')->once()->withArguments('serviceDefinition')->once();
 }
示例#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('blackfireProfile')->once();
 }
示例#3
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('json')->once()->object($faker = $test->json('{}'))->isInstanceOf('mageekguy\\atoum\\jsonSchema\\asserters\\json');
 }
示例#4
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);
 }