diff --git a/tests/unit/Codeception/Module/BeanstalkdTest.php b/tests/unit/Codeception/Module/BeanstalkdTest.php
index <HASH>..<HASH> 100644
--- a/tests/unit/Codeception/Module/BeanstalkdTest.php
+++ b/tests/unit/Codeception/Module/BeanstalkdTest.php
@@ -19,7 +19,7 @@ class Beanstalkd_Test extends \PHPUnit_Framework_TestCase
     {
         $this->module = new \Codeception\Module\Queue(make_container());
             $this->module->_setConfig($this->config);
-            $this->module->_before(Stub::makeEmpty('\Codeception\TestCase'));
+            $this->module->_before(Stub::makeEmpty('\Codeception\TestInterface'));
         try {
             $this->module->clearQueue('default');
         } catch (ConnectionException $e) {
Pass correct stub to _before hook of Beanstalkd module