使用PHPUnit进行测试时是否可以隐藏堆栈跟踪?

时间:2017-08-10 09:43:32

标签: laravel testing phpunit

我在测试时是否有办法摆脱堆栈跟踪(Laravel 5.3 PHPUnit)?

我不断加载这个:

Stack trace:
#0 /u10/html/utils/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(77): PDO->prepare('select * from "...', Array)
#1 /u10/html/utils/vendor/laravel/framework/src/Illuminate/Database/Connection.php(333): Doctrine\DBAL\Driver\PDOConnection->prepare('select * from "...')
#2 /u10/html/utils/vendor/laravel/framework/src/Illuminate/Database/Connection.php(763): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\SQLiteConnection), 'select * from "...', Array)
#3 /u10/html/utils/vendor/laravel/framework/src/Illuminate/Database/Connection.php(726): Illuminate\Database\Connection->runQueryCallback('select * from "...', Array, Object(Closure))
#4 /u10/html/utils/vendor/laravel/framework/src/Illuminate/Database/Connection.php(351): Illuminate\Database\Connection->run('select * from "...', Array, Object(Closure))
#5 /u10/html/utils/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1648): 

0 个答案:

没有答案