protected function tearDown() { double::clean(); }
/** * Clears test doubles registry. * Should be called between tests. * * ``` php * <?php * test::clean(); * ?> * ``` * * Also you can clean registry only for the specific class or object. * * ``` php * <?php * test::clean('User'); * test::clean($user); * ?> * ``` * * @api */ public static function clean($classOrInstance = null) { Core\Registry::clean($classOrInstance); }