Skip to content

Commit 787e9e9

Browse files
committed
Simplify property and parameter name in add/removeLogger tests
1 parent 530f578 commit 787e9e9

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

tests/logging/addLogger-002.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ use function MongoDB\Driver\Logging\log;
1010

1111
class MyLogger implements Logger
1212
{
13-
private $instanceName;
13+
private $name;
1414

15-
public function __construct(string $instanceName)
15+
public function __construct(string $name)
1616
{
17-
$this->instanceName = $instanceName;
17+
$this->name = $name;
1818
}
1919

2020
public function log(int $level, string $domain, string $message): void
2121
{
22-
printf("%s: %d: %s: %s\n", $this->instanceName, $level, $domain, $message);
22+
printf("%s: %d: %s: %s\n", $this->name, $level, $domain, $message);
2323
}
2424
}
2525

tests/logging/removeLogger-002.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ use function MongoDB\Driver\Logging\log;
1111

1212
class MyLogger implements Logger
1313
{
14-
private $instanceName;
14+
private $name;
1515

16-
public function __construct(string $instanceName)
16+
public function __construct(string $name)
1717
{
18-
$this->instanceName = $instanceName;
18+
$this->name = $name;
1919
}
2020

2121
public function log(int $level, string $domain, string $message): void
2222
{
23-
printf("%s: %d: %s: %s\n", $this->instanceName, $level, $domain, $message);
23+
printf("%s: %d: %s: %s\n", $this->name, $level, $domain, $message);
2424
}
2525
}
2626

tests/logging/removeLogger-003.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ use function MongoDB\Driver\Logging\log;
1111

1212
class MyLogger implements Logger
1313
{
14-
private $instanceName;
14+
private $name;
1515

16-
public function __construct(string $instanceName)
16+
public function __construct(string $name)
1717
{
18-
$this->instanceName = $instanceName;
18+
$this->name = $name;
1919
}
2020

2121
public function log(int $level, string $domain, string $message): void
2222
{
23-
printf("%s: %d: %s: %s\n", $this->instanceName, $level, $domain, $message);
23+
printf("%s: %d: %s: %s\n", $this->name, $level, $domain, $message);
2424
}
2525
}
2626

0 commit comments

Comments
 (0)