Martin Vandersteen Martin Vandersteen - 1 year ago 67
HTML Question

Laravel 5 : PHPunit wont start, throws internal server error

I just wrote tests for a new controller i implemented, and wanted the run them but phpunit gives me the following error... I'm running laravel 5.2. I was wondering if any of you had an idea about where it could come from?

Thanks in advance for your help :)


$ phpunit
PHPUnit 5.6.1 by Sebastian Bergmann and contributors.

"-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Internal Server Error</title>

<style type="text/css">
body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px}
.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}

<h1>Internal Server Error</h1>
<h2>include(DB.php): failed to open stream: No such file or directory</h2>
An internal error occurred while the Web server was processing your request.
Please contact the webmaster to report this problem.
Thank you.
<div class="version">
2016-10-13 13:27:21 </div>

Answer Source

We removed Yii, made our own role-based system, and now PHPunit starts! We get another error though but nothing related to this issue, thanks for your help :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download