Skip to content

Commit 221b9ac

Browse files
committed
test: use aliasing with use operator
1 parent ee49833 commit 221b9ac

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/system/Honeypot/HoneypotTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use CodeIgniter\HTTP\IncomingRequest;
1919
use CodeIgniter\HTTP\Response;
2020
use CodeIgniter\Test\CIUnitTestCase;
21+
use Config\Honeypot as HoneypotConfig;
2122

2223
/**
2324
* @backupGlobals enabled
@@ -28,7 +29,7 @@
2829
*/
2930
final class HoneypotTest extends CIUnitTestCase
3031
{
31-
private \Config\Honeypot $config;
32+
private HoneypotConfig $config;
3233
private Honeypot $honeypot;
3334

3435
/**
@@ -41,7 +42,7 @@ final class HoneypotTest extends CIUnitTestCase
4142
protected function setUp(): void
4243
{
4344
parent::setUp();
44-
$this->config = new \Config\Honeypot();
45+
$this->config = new HoneypotConfig();
4546
$this->honeypot = new Honeypot($this->config);
4647

4748
unset($_POST[$this->config->name]);
@@ -147,7 +148,7 @@ public function testHoneypotFilterAfter()
147148

148149
public function testEmptyConfigContainer()
149150
{
150-
$config = new \Config\Honeypot();
151+
$config = new HoneypotConfig();
151152
$config->container = '';
152153
$honeypot = new Honeypot($config);
153154

@@ -159,7 +160,7 @@ public function testEmptyConfigContainer()
159160

160161
public function testNoTemplateConfigContainer()
161162
{
162-
$config = new \Config\Honeypot();
163+
$config = new HoneypotConfig();
163164
$config->container = '<div></div>';
164165
$honeypot = new Honeypot($config);
165166

0 commit comments

Comments
 (0)