Exemple #1
0
 public function testSetReflectionClassFactory()
 {
     $this->if($coverage = new testedClass())->then->object($coverage->setReflectionClassFactory($reflectionClassFactory = function () {
     }))->isIdenticalTo($coverage)->object($coverage->getReflectionClassFactory())->isIdenticalTo($reflectionClassFactory)->object($coverage->setReflectionClassFactory())->isIdenticalTo($coverage)->object($defaultReflectionClassFactory = $coverage->getReflectionClassFactory())->isInstanceOf('closure')->isNotIdenticalTo($reflectionClassFactory)->object($defaultReflectionClassFactory($this))->isEqualTo(new \reflectionClass($this));
 }