2017 © Pedro Peláez
 

library app-test

ZF2 BoilerApp tests tools

image

zf2-boiler-app/app-test

ZF2 BoilerApp tests tools

  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ZF2 BoilerApp "Test" module

Build Status Latest Stable Version Total Downloads, (*1)

NOTE : This module is in heavy development, it's not usable yet. If you want to contribute don't hesitate, I'll review any PR., (*2)

Introduction

ZF2 BoilerApp "Test" module is a Zend Framework 2 module that provides tools to test modules of ZF2 BoilerApp, (*3)

Requirements

Installation

Main Setup

By cloning project

  1. Clone this project into your ./vendor/ directory.

With composer

  1. Add this project in your composer.json:, (*4)

    "require-dev": {
        "zf2-boiler-app/app-test": "dev-master"
    }
    
  2. Now tell composer to download ZF2 BoilerApp Test module by running the command:, (*5)

    $ php composer.phar update
    

Post installation

  1. Enabling it in your TestConfig.php.dist file., (*6)

    return array(
        'modules' => array(
            // ...
            'BoilerAppTest',
        ),
        // ...
    );
    
  2. Create the Bootstrap.php file, (*7)

    namespace MyModuleTest;
    error_reporting(E_ALL | E_STRICT);
    chdir(dirname(__DIR__));
    if(is_readable($sBoilerAppTestBootstrapPath = __DIR__.'/../vendor/zf2-boiler-app/app-test/src/BoilerAppTest/AbstractBootstrap.php'))include $sBoilerAppTestBootstrapPath;
    if(!class_exists('BoilerAppTest\AbstractBootstrap'))throw new \RuntimeException('Unable to load BoilerAppTest Bootstrap. Install required libraries through `composer`');
    class Bootstrap extends \BoilerAppTest\AbstractBootstrap{}
    Bootstrap::init();    
    

Features

Bootstraping

  • Application and test configuration autoloading
  • Service manager accessor

Doctrine

  • Database auto creator
  • Fixture autoloading

The Versions

07/10 2013

dev-master

9999999-dev

ZF2 BoilerApp tests tools

  Sources   Download

MIT

The Requires

 

phpunit doctrine tests zend framework 2 zf2 boiler-app