/** * */ function test_php_exception() { try { PHPException::exception('foo'); } catch (\Exception $exception) { } $this->assertEquals('foo', $exception->getMessage()); $this->assertEquals(__FILE__, $exception->getFile()); $this->assertEquals(38, $exception->getLine()); $this->assertInstanceOf(PHPException::class, $exception); }