Skip to content

Commit 0f0ad58

Browse files
committed
Fixed failing tests on PHP 7.4
PHP 7.4 uncovered issue with tests
1 parent 5f11ce1 commit 0f0ad58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ php:
66
- 7.1
77
- 7.2
88
- 7.3
9+
- 7.4snapshot
910

1011
# faster builds on new travis setup not using sudo
1112
sudo: false

tests/unit/Codeception/Module/SoapTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ class SoapTest extends \Codeception\PHPUnit\TestCase
2020
public function _setUp()
2121
{
2222
$container = \Codeception\Util\Stub::make('Codeception\Lib\ModuleContainer');
23+
$frameworkModule = new \Codeception\Module\UniversalFramework($container);
24+
$frameworkModule->client = Stub::makeEmpty('\Codeception\Lib\Connector\Universal');
2325
$this->module = new \Codeception\Module\SOAP($container);
2426
$this->module->_setConfig(array(
2527
'schema' => 'http://www.w3.org/2001/xml.xsd',
2628
'endpoint' => 'http://codeception.com/api/wsdl'
2729
));
30+
$this->module->_inject($frameworkModule);
2831
$this->layout = \Codeception\Configuration::dataDir().'/layout.xml';
2932
$this->module->isFunctional = true;
3033
$this->module->_before(Stub::makeEmpty('\Codeception\Test\Test'));
31-
32-
//loading framework module creates AbstractBrowser class alias used by connector
33-
$frameworkModule = new \Codeception\Module\UniversalFramework($container);
34-
$this->module->client = Stub::makeEmpty('\Codeception\Lib\Connector\Universal');
3534
}
3635

3736
public function testXmlIsBuilt()

0 commit comments

Comments
 (0)