예제 #1
0
 private static function get_instance_replacement_chain_head($className)
 {
     $step = new Step();
     $step->setClass($className);
     $forger = new InstanceForger();
     $forger->setTestCase(self::getTestCase());
     $step->setInstanceForger($forger);
     return $step;
 }
예제 #2
0
 /**
  * @test
  * it should return the same verifier instance on each call
  */
 public function it_should_return_the_same_verifier_instance_on_each_call()
 {
     $sut = new Step($this->class);
     $sut->setClass($this->class);
     $this->set_instance_forger_on($sut);
     $verifyOne = $sut->verify();
     $verifyTwo = $sut->verify();
     $this->assertSame($verifyOne, $verifyTwo);
 }