Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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');
 }
Exemplo n.º 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);
 }