2017 © Pedro Peláez
 

symfony-bundle xsolve-unit-skelgen-bundle

XSolve PHPUnit SkelGen Bundle to improve creating test cases for PHPUnit

image

xsolve-pl/xsolve-unit-skelgen-bundle

XSolve PHPUnit SkelGen Bundle to improve creating test cases for PHPUnit

  • Thursday, October 10, 2013
  • by wowo
  • Repository
  • 58 Watchers
  • 8 Stars
  • 4,488 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

About

knpbundles.com, (*1)

Build Status, (*2)

SensioLabsInsight, (*3)

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

Features:, (*5)

  • 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, (*6)

Installation

1) Add to composer.json, (*7)

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

2) Install dependencies, (*8)

composer install

3) Enable the bundle in app/AppKernel.php, (*9)

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

Usage

Generate PHPUnit test class for a single production class:, (*10)

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

Generate PHPUnit test class for a namespace:, (*11)

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

Nice matching! It will create tests for DefaultControllers in all the bundles:, (*12)

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

Using the same patterns you can generate production classes from test classes:, (*13)

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

The Versions

10/10 2013

dev-master

9999999-dev https://github.com/xsolve-pl/xsolve-unit-skelgen-bundle

XSolve PHPUnit SkelGen Bundle to improve creating test cases for PHPUnit

  Sources   Download

MIT

The Development Requires

tdd phpunit unit tests test driven development skelgen

02/09 2013

v1.0.0

1.0.0.0 https://github.com/xsolve-pl/xsolve-unit-skelgen-bundle

XSolve PHPUnit SkelGen Bundle to improve creating test cases for PHPUnit

  Sources   Download

MIT

tdd phpunit unit tests test driven development skelgen

02/09 2013

dev-readme-update

dev-readme-update https://github.com/xsolve-pl/xsolve-unit-skelgen-bundle

XSolve PHPUnit SkelGen Bundle to improve creating test cases for PHPUnit

  Sources   Download

MIT

tdd phpunit unit tests test driven development skelgen