function its_registerClassPatch_adds_a_patch_to_the_doubler(ClassPatchInterface $patch) { $this->registerClassPatch($patch); $this->getClassPatches()->shouldReturn(array($patch)); }