Skip to content

Commit f76a729

Browse files
committed
Replace Codeception\Util\Stub with Codeception\Stub in tests
1 parent 20d7733 commit f76a729

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/unit/Codeception/Module/PhpBrowserRestTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use Codeception\Test\Unit;
4-
use Codeception\Util\Stub;
4+
use Codeception\Stub;
55

66
class PhpBrowserRestTest extends Unit
77
{
@@ -17,7 +17,7 @@ class PhpBrowserRestTest extends Unit
1717

1818
public function _setUp()
1919
{
20-
$container = \Codeception\Util\Stub::make('Codeception\Lib\ModuleContainer');
20+
$container = Stub::make('Codeception\Lib\ModuleContainer');
2121
$this->phpBrowser = new \Codeception\Module\PhpBrowser($container);
2222
$url = 'http://localhost:8010';
2323
$this->phpBrowser->_setConfig(['url' => $url]);

tests/unit/Codeception/Module/PhpBrowserTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use Codeception\Exception\TestRuntimeException;
4-
use Codeception\Util\Stub;
4+
use Codeception\Stub;
55

66
require_once 'tests/data/app/data.php';
77
require_once __DIR__ . '/TestsForBrowsers.php';
@@ -21,7 +21,7 @@ class PhpBrowserTest extends TestsForBrowsers
2121

2222
protected function _setUp()
2323
{
24-
$container = \Codeception\Util\Stub::make('Codeception\Lib\ModuleContainer');
24+
$container = Stub::make('Codeception\Lib\ModuleContainer');
2525
$this->module = new \Codeception\Module\PhpBrowser($container);
2626
$url = 'http://localhost:8000';
2727
$this->module->_setConfig(['url' => $url]);

0 commit comments

Comments
 (0)