Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 6fab77b

Browse files
author
Jens Schulze
committed
test(Client): fix segfault with code coverage
1 parent 6cc655e commit 6fab77b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/unit/ClientTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Monolog\Logger;
1818
use Commercetools\Core\Client\JsonEndpoint;
1919
use Commercetools\Core\Client\OAuth\Token;
20-
use Commercetools\Core\Error\ApiException;
2120
use Commercetools\Core\Request\ClientRequestInterface;
2221

2322
class ClientTest extends \PHPUnit_Framework_TestCase
@@ -357,12 +356,10 @@ public function testLogDeprecatedMethod()
357356
}
358357

359358
/**
360-
* @expectedException \GuzzleHttp\Exception\ConnectException
359+
* @expectedException \Commercetools\Core\Error\ApiException
361360
*/
362361
public function testBatchException()
363362
{
364-
$this->markTestSkipped('todo fix segfault');
365-
return;
366363
$oauthMock = $this->getMock('\Commercetools\Core\Client\OAuth\Manager', ['getToken'], [$this->getConfig()]);
367364
$oauthMock->expects($this->any())
368365
->method('getToken')
@@ -399,8 +396,6 @@ public function testBatchException()
399396

400397
public function testBatchExceptionWithResponse()
401398
{
402-
$this->markTestSkipped('todo fix segfault');
403-
return;
404399
$oauthMock = $this->getMock('\Commercetools\Core\Client\OAuth\Manager', ['getToken'], [$this->getConfig()]);
405400
$oauthMock->expects($this->any())
406401
->method('getToken')

0 commit comments

Comments
 (0)