Skip to content

Commit 564d654

Browse files
authored
Merge pull request #5323 from kenjis/fix-docs-controllers.rst
docs: fix controllers.rst
2 parents d877554 + 6365b40 commit 564d654

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/testing/controllers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ If you do not provide one, the application's App config file will be used.
9696

9797
Allows you to provide an **IncomingRequest** instance tailored to your testing needs::
9898

99-
$request = new CodeIgniter\HTTP\IncomingRequest(new Config\App(), new URI('http://example.com'));
99+
$request = new \CodeIgniter\HTTP\IncomingRequest(new \Config\App(), new URI('http://example.com'));
100100
$request->setLocale($locale);
101101

102102
$results = $this->withRequest($request)
@@ -110,7 +110,7 @@ into your controller.
110110

111111
Allows you to provide a **Response** instance::
112112

113-
$response = new CodeIgniter\HTTP\Response(new Config\App());
113+
$response = new \CodeIgniter\HTTP\Response(new \Config\App());
114114

115115
$results = $this->withResponse($response)
116116
->controller(\App\Controllers\ForumController::class)
@@ -123,7 +123,7 @@ into your controller.
123123

124124
Allows you to provide a **Logger** instance::
125125

126-
$logger = new CodeIgniter\Log\Handlers\FileHandler();
126+
$logger = new \CodeIgniter\Log\Handlers\FileHandler();
127127

128128
$results = $this->withResponse($response)
129129
->withLogger($logger)

0 commit comments

Comments
 (0)