php - Model Class Not Found with Codeception and Laravel4 -
I follow the course of tutsplus: But I have an error in this text:
The error is that I am trying to create an object type to create the post type (a model in a post Laravel), but I have the next message when running the Klondom test:
Laravel: Codested run codenamed PHP Testing Framework v1.8.3 is supported by PHPUnit 3.7.31 by Sebastian Bergmann. Acceptance Test (1) --------------------------------------------- --- Trying to take action and see results (SigninCept.php) OK ------------------------------ ---- ----------------------------------- Functional Test (2) ------ ---- --------------------------------------- Fatal error. The test did not complete Laurel / App / Test / Functional / Postcast. No class post found in PHP: 9 . This is my exam. PostCest.php
And this is my post class:
& lt ;? Php class posts are well-documented (protected $ guarded = array); Public fixed $ rule = array (); There is a lot, there is no class named 'Post' defined in your application. Why do you think this class should be you?
You can check to make sure that you do not have a post class name, and you need to do something like this
new \ Namespace \ Post; Edit: Post.php is trying to convert to .php. A few months ago I had a problem, where my server did not treat well with the capitals in the file names
Comments
Post a Comment