1818use CodeIgniter \HTTP \IncomingRequest ;
1919use CodeIgniter \HTTP \Response ;
2020use CodeIgniter \Test \CIUnitTestCase ;
21+ use Config \Honeypot as HoneypotConfig ;
2122
2223/**
2324 * @backupGlobals enabled
2829 */
2930final 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