Skip to content

Commit 693e116

Browse files
authored
Merge pull request #32 from Codeception/dont-use-codeception-util-stub
Use Codeception\Stub in tests
2 parents 8604bd7 + dc1a926 commit 693e116

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/Codeception/Module/FrameworksTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
use Codeception\Util\Stub;
2+
use Codeception\Stub;
33

44
require_once __DIR__ . '/TestsForWeb.php';
55

@@ -15,7 +15,7 @@ class FrameworksTest extends TestsForWeb
1515

1616
public function _setUp()
1717
{
18-
$container = \Codeception\Util\Stub::make('Codeception\Lib\ModuleContainer');
18+
$container = Stub::make('Codeception\Lib\ModuleContainer');
1919
$this->module = new \Codeception\Module\UniversalFramework($container);
2020
$this->module->_initialize();
2121
}
@@ -85,9 +85,9 @@ public function testMoveBackThrowsExceptionIfNumberOfStepsIsInvalid()
8585

8686
public function testCreateSnapshotOnFail()
8787
{
88-
$container = \Codeception\Util\Stub::make('Codeception\Lib\ModuleContainer');
88+
$container = Stub::make('Codeception\Lib\ModuleContainer');
8989
$module = Stub::construct(get_class($this->module), [$container], [
90-
'_savePageSource' => \Codeception\Stub\Expected::once(function ($filename) {
90+
'_savePageSource' => Stub\Expected::once(function ($filename) {
9191
$this->assertEquals(codecept_log_dir('Codeception.Module.UniversalFramework.looks.like..test.fail.html'), $filename);
9292
}),
9393
]);

0 commit comments

Comments
 (0)