Skip to content

Commit 88f57fd

Browse files
committed
fixed previous commit not working in PHP < 5.5
1 parent 7dfc822 commit 88f57fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/src/classes/crm/company/companyTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Bitrix24\CRM\Company;
1313
use Bitrix24\Contracts\iBitrix24;
1414

15+
1516
/**
1617
* @package Bitrix24
1718
*/
@@ -27,11 +28,11 @@ public function testUpdateCallsClientWithIdAndFields()
2728

2829
//silly mocking in PHPUnit 4.8
2930
$methods = array();
30-
$ref = new \ReflectionClass(iBitrix24::class);
31+
$ref = new \ReflectionClass('Bitrix24\\Contracts\\iBitrix24');
3132
foreach ($ref->getMethods() as $method) {
3233
$methods[] = $method->getName();
3334
}
34-
$client = $this->getMockBuilder(iBitrix24::class)
35+
$client = $this->getMockBuilder('Bitrix24\\Contracts\\iBitrix24')
3536
->setMethods($methods)
3637
->getMock();
3738
$client->expects($this->once())

0 commit comments

Comments
 (0)