June 2017
Intermediate to advanced
536 pages
9h 49m
English
Running only a phpspec run command at this point will likely fail with something like a class ... does not exist message, because phpspec assumes a PSR-0 mapping by default. To be able to work with the application we have done so far, we need to tell phpspec to include our src/Foggyline/* classes. We can do so either through a phpspec.yml configuration file, or using the --bootstrap option. Since we have already created the autoload.php file, let's go ahead and run phpspec by bootstrapping this file as follows:
phpspec run --bootstrap=autoload.php
This generates the following output:

We have involved these two specs using ...
Read now
Unlock full access