2017 © Pedro Peláez
 

library blast-test-utils

Utilities for testing integrity of services managed by Zend\ServiceManager

image

mtymek/blast-test-utils

Utilities for testing integrity of services managed by Zend\ServiceManager

  • Sunday, July 3, 2016
  • by mtymek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,624 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 36 % Grown

The README.md

Blast\TestUtils

Build Status, (*1)

Utilities for testing integrity of services managed by Zend\ServiceManager., (*2)

Installation

Install this library using composer:, (*3)

$ composer require mtymek/blast-test-utils

Usage

Use ServiceIntegrityTestTrait to build test that validates integrity of your service manager configuration. It requires to static methos: getConfig that loads full application config, and getServiceManagerConfigKey providing name of configuration key used to set up ServiceManager., (*4)

Example usage for zend-expressive application:, (*5)

<?php

namespace Integration;

use Blast\TestUtils\ServiceIntegrityTestTrait;
use PHPUnit_Framework_TestCase;

class ServiceContainerIntegrityTest extends PHPUnit_Framework_TestCase
{
    use ServiceIntegrityTestTrait;

    private static function getConfig()
    {
        return include 'config/config.php';
    }

    private static function getServiceManagerConfigKey()
    {
        return 'dependencies';
    }
}

The Versions

03/07 2016

dev-master

9999999-dev

Utilities for testing integrity of services managed by Zend\ServiceManager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

03/07 2016

0.1.1

0.1.1.0

Utilities for testing integrity of services managed by Zend\ServiceManager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

03/07 2016

0.1.0

0.1.0.0

Utilities for testing integrity of services managed by Zend\ServiceManager

  Sources   Download

The Requires

 

The Development Requires