Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b33202

Browse files
committed
Fix more attributes
1 parent 3eb9ba3 commit 2b33202

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pkg/rdkafka/Tests/RdKafkaConnectionFactoryConfigTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Enqueue\RdKafka\RdKafkaConnectionFactory;
66
use Enqueue\Test\ClassExtensionTrait;
7+
use Enqueue\Test\ReadAttributeTrait;
78
use PHPUnit\Framework\TestCase;
89

910
/**
@@ -12,6 +13,7 @@
1213
class RdKafkaConnectionFactoryConfigTest extends TestCase
1314
{
1415
use ClassExtensionTrait;
16+
use ReadAttributeTrait;
1517

1618
public function testThrowNeitherArrayStringNorNullGivenAsConfig()
1719
{
@@ -39,7 +41,7 @@ public function testShouldParseConfigurationAsExpected($config, $expectedConfig)
3941
{
4042
$factory = new RdKafkaConnectionFactory($config);
4143

42-
$config = $this->getObjectAttribute($factory, 'config');
44+
$config = $this->readAttribute($factory, 'config');
4345

4446
$this->assertNotEmpty($config['global']['group.id']);
4547

pkg/rdkafka/Tests/RdKafkaConnectionFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testShouldBeExpectedDefaultConfig()
4141
{
4242
$factory = new RdKafkaConnectionFactory(null);
4343

44-
$config = $this->getObjectAttribute($factory, 'config');
44+
$config = $this->readAttribute($factory, 'config');
4545

4646
$this->assertNotEmpty($config['global']['group.id']);
4747

@@ -58,7 +58,7 @@ public function testShouldBeExpectedDefaultDsnConfig()
5858
{
5959
$factory = new RdKafkaConnectionFactory('kafka:');
6060

61-
$config = $this->getObjectAttribute($factory, 'config');
61+
$config = $this->readAttribute($factory, 'config');
6262

6363
$this->assertNotEmpty($config['global']['group.id']);
6464

0 commit comments

Comments
 (0)