【问题标题】:PhpSpec Can not find appropriate suite scope for class errorPhpSpec 找不到适合类错误的套件范围
【发布时间】:2015-08-17 12:28:17
【问题描述】:

我刚刚开始使用 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 类,因此该类存在。

我的phpspec.yml

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

CourseGuideController.php:

namespace CRMPicco\GolfBundle\Controller;

class CourseGuideController
{

}

【问题讨论】:

    标签: php bdd phpspec


    【解决方案1】:

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

    【讨论】:

    • 我认识这个人... ;)
    猜你喜欢
    • 2021-12-06
    • 1970-01-01
    • 2022-11-27
    • 2017-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多