Skip to content

Commit 5f2405a

Browse files
committed
SOAP tests fixed
1 parent d005dfe commit 5f2405a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/Codeception/Module/SoapTest.php

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

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

66
class SoapTest extends \PHPUnit_Framework_TestCase
@@ -17,8 +17,9 @@ public function setUp() {
1717
$this->module = new \Codeception\Module\Soap();
1818
$this->module->_setConfig(array('schema' => 'http://www.w3.org/2001/xml.xsd', 'endpoint' => 'http://codeception.com/api/wsdl'));
1919
$this->layout = \Codeception\Configuration::dataDir().'/xml/layout.xml';
20-
$this->module->client = \Codeception\Util\Connector\Universal();
20+
$this->module->client = Stub::makeEmpty('\Codeception\Util\Connector\Universal');
2121
$this->module->is_functional = true;
22+
$this->module->_before(Stub::makeEmpty('\Codeception\TestCase\Cept'));
2223
}
2324

2425
public function testXmlIsBuilt() {

0 commit comments

Comments
 (0)