Skip to content

Commit

Permalink
QA: Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 18, 2025
1 parent a314a06 commit d013905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/it/php/web/unittest/TestingApplication.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace web\unittest;

use Throwable;
use lang\XPClass;
use test\Assert;
use util\Bytes;
use web\handler\WebSocket;
use web\{Application, Error};
Expand Down Expand Up @@ -29,7 +29,7 @@ public function routes() {
},
'/raise/exception' => function($req, $res) {
$class= XPClass::forName(basename($req->uri()->path()));
if ($class->isSubclassOf(\Throwable::class)) throw $class->newInstance('Raised');
if ($class->isSubclassOf(Throwable::class)) throw $class->newInstance('Raised');

// A non-exception class was passed!
$res->answer(200, 'No error');
Expand Down

0 comments on commit d013905

Please sign in to comment.