File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33namespace Codeception \Module ;
44
5+ use Codeception \Module as CodeceptionModule ;
6+ use Codeception \TestCase ;
57use Codeception \Exception \ModuleException as ModuleException ;
68use Codeception \Lib \Driver \Redis as RedisDriver ;
79
3234 *
3335 * @author judgedim
3436 */
35- class Redis extends \ Codeception \Module
37+ class Redis extends CodeceptionModule
3638{
3739 protected $ config = [
3840 'cleanup ' => true
@@ -53,18 +55,17 @@ public function _initialize()
5355 } catch (\Exception $ e ) {
5456 throw new ModuleException (__CLASS__ , $ e ->getMessage ());
5557 }
56-
5758 }
5859
59- public function _before (\ Codeception \ TestCase $ test )
60+ public function _before (TestCase $ test )
6061 {
6162 if ($ this ->config ['cleanup ' ]) {
6263 $ this ->cleanup ();
6364 }
6465 parent ::_before ($ test );
6566 }
6667
67- public function _after (\ Codeception \ TestCase $ test )
68+ public function _after (TestCase $ test )
6869 {
6970 parent ::_after ($ test );
7071 }
@@ -85,5 +86,4 @@ protected function cleanup()
8586 throw new ModuleException (__CLASS__ , $ e ->getMessage ());
8687 }
8788 }
88-
8989}
You can’t perform that action at this time.
0 commit comments