tradedataservices/phpspec-for-ci-extension

PhpSpec for CodeIgniter

1.0.1 2024-01-17 01:54 UTC

This package is auto-updated.

Last update: 2024-09-17 04:20:45 UTC


README

#Phpspec for CodeIgniter 扩展

##使用扩展

  1. 在您的 composer.json 文件中添加以下仓库条目
    ...
    "repositories": [
        ...
        {
          "type": "git",
          "url": "git@bitbucket.org:code-ninja/phpspec-for-ci-extension.git"
        }
        ...
    ]
  1. 在您的 composer.json 文件中添加以下仓库条目
    ...
    "require-dev": {
        ...
        "importgenius/phpspec-for-ci-extension" : "dev-master"
        ...
    }
  1. 在您的 phpspec.yml 文件中启用扩展
...
extensions:
    - ImportGenius\PhpSpecForCi\PhpSpecExtension
...

##有关更详细的技术信息,请参阅此文件夹中的功能文件

vendor/importgenius/phpspec-for-ci-extension/features/code_generation

##运行测试

###Behat

$ bin/behat

###Phpspec

$ bin/phpspec run

###PHPMD

$ bin/phpmd src/ text cleancode,codesize,controversial,design,naming,unusedcode

###PHPCS

$ bin/phpcs src/ --standard=PSR2