2

I'm trying to get phpspec running with Laravel, following this video

I install it ok with composer, and add an alias, but when I run:

  phpspec describe Shipping' 

I get an error:

 [RuntimeException] 
 Can not find appropriate suite scope for class `Shipping`. 
Positonic
  • 9,151
  • 14
  • 57
  • 84

1 Answers1

3

check namespace in your composer.json

"psr-4": {
      "Acme\\":"app/Acme"
    }

and of-course

composer dumpautoload

and

in phpspec.yml file

suites:
 acme_suites:
  namespace: Acme

phpspec describe Acme\Shipping

Ahmed Ali
  • 41
  • 1
  • 5