Skip to content

Commit f622d1d

Browse files
committed
refactored to have multiple independent test formats
1 parent e9614d6 commit f622d1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Codeception/Module/SOAP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use Codeception\Lib\Interfaces\DependsOnModule;
55
use Codeception\Module as CodeceptionModule;
6-
use Codeception\Testable;
6+
use Codeception\TestInterface;
77
use Codeception\Exception\ModuleException;
88
use Codeception\Exception\ModuleRequireException;
99
use Codeception\Lib\Framework;
@@ -87,7 +87,7 @@ class SOAP extends CodeceptionModule implements DependsOnModule
8787
*/
8888
protected $connectionModule;
8989

90-
public function _before(Testable $test)
90+
public function _before(TestInterface $test)
9191
{
9292
$this->client = &$this->connectionModule->client;
9393
$this->buildRequest();

tests/unit/Codeception/Module/SoapTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use Codeception\Util\Stub as Stub;
3+
use Codeception\Util\Stub;
44
use Codeception\Util\Soap as SoapUtil;
55

66
/**
@@ -22,7 +22,7 @@ public function setUp() {
2222
$this->module->_setConfig(array('schema' => 'http://www.w3.org/2001/xml.xsd', 'endpoint' => 'http://codeception.com/api/wsdl'));
2323
$this->layout = \Codeception\Configuration::dataDir().'/xml/layout.xml';
2424
$this->module->isFunctional = true;
25-
$this->module->_before(Stub::makeEmpty('\Codeception\Test\Format\Cept'));
25+
$this->module->_before(Stub::makeEmpty('\Codeception\Test\Test'));
2626
$this->module->client = Stub::makeEmpty('\Codeception\Lib\Connector\Universal');
2727
}
2828

0 commit comments

Comments
 (0)