PhpSpec 无法为 class 错误找到合适的套件范围

PhpSpec Can not find appropriate suite scope for class error

我刚刚开始使用 PhpSpec。 当我这样做时:

bin/phpspec desc src/CRMPicco/GolfBundle/Controller/CourseGuideController

我收到以下错误:

  [PhpSpec\Exception\Locator\ResourceCreationException]
  Can not find appropriate suite scope for class `src/CRMPicco/GolfBundle/Controller/CourseGuideController`.

我在该目录中创建了一个空 CourseGuideController class,因此 class 存在。

我的phpspec.yml:

suites:
    CRMPiccoGolfBundle: { namespace: CRMPicco, spec_path: src/CRMPicco/GolfBundle }

CourseGuideController.php:

namespace CRMPicco\GolfBundle\Controller;

class CourseGuideController
{

}

尝试: bin/phpspec desc CRMPicco/GolfBundle/Controller/CourseGuideController