承接 xsolve-pl/xsolve-unit-skelgen-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xsolve-pl/xsolve-unit-skelgen-bundle

Composer 安装命令:

composer require xsolve-pl/xsolve-unit-skelgen-bundle

包简介

XSolve PHPUnit SkelGen Bundle to improve creating test cases for PHPUnit

README 文档

README

knpbundles.com

Build Status

SensioLabsInsight

This bundle helps with PHPUnit test suites creation by using phpunit-skelgen (Skeleton Generator)

Features:

  • creates test suite class respectively to given namespace (for instance Controller/DemoController.php will have test in Test/Controller/DemoControllerTest.php)
  • asterisks and dots pattern matching - it will create test suites for every matching class in found directory
  • fully TDD capable - creates production classes based on test suite class
  • easy to extend and introduce changes in the future

Example usage

Installation

  1. Add to composer.json

    "require": { "xsolve-pl/xsolve-unit-skelgen-bundle": "1.0.*" }

  2. Install dependencies

    composer install

  3. Enable the bundle in app/AppKernel.php

    public function registerBundles() { return array( // ... new Xsolve\UnitSkelgenBundle\XsolveUnitSkelgenBundle(), ); }

Usage

Generate PHPUnit test class for a single production class:

app/console xsolve:skelgen:test Xsolve/ExampleBundle/Controller/DefaultController

Generate PHPUnit test class for a namespace:

app/console xsolve:skelgen:test Xsolve/ExampleBundle/Controller/.

Nice matching! It will create tests for DefaultControllers in all the bundles:

app/console xsolve:skelgen:test Xsolve/*/Controller/DefaultController

Using the same patterns you can generate production classes from test classes:

app/console xsolve:skelgen:class Xsolve/ExampleBundle/Tests/Controller/DefaultControllerTest

统计信息

  • 总下载量: 10.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 71
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-09-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固