Example #1
0
 protected function tearDown()
 {
     double::clean();
 }
Example #2
0
 /**
  * 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);
 }