4 months ago

PHP Unit Not Catching Wrong Class Name On Dev?

Posted 4 months ago by Tenatious


So I have a unit test running that is checking for a page redirect and that the page is displaying some text. The test passes on my localhost as I'd expect and I can browse to the page. I noticed however when I uploaded the site to a server and browsed to the page I got a 500 Error and on digging in to it further it turned out I'd use auth:: instead of Auth:: and so I got a class not found error.

How come PHP Unit on my localhost still processes auth:: correctly instead of providing a class error like the production server does? Is there a setting I can do somewhere that makes it process as strictly on my localhost as on the server?

Please sign in or create an account to participate in this conversation.