2017 © Pedro Peláez
 

library codeception-slim-module

Codeception Module for Slim 3 Microframework.

image

herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  • Saturday, March 4, 2017
  • by herloct
  • Repository
  • 2 Watchers
  • 17 Stars
  • 13,222 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 28 % Grown

The README.md

Codeception Slim Module

Master Build Status Packagist Stable Version Packagist License Libraries.io for GitHub, (*1)

This module allows you to run tests inside Slim 3 Microframework.
Based on ZendExpressive Module., (*2)

Install

Via commandline:, (*3)

composer require --dev herloct/codeception-slim-module

Via composer.json:, (*4)

{
  "require-dev": {
    "herloct/codeception-slim-module": "^1.1"
  }
}

Config

Put this on your codeception.yml, (*5)

modules:
  config:
    \Herloct\Codeception\Module\Slim:
      container: path/to/container.php
    REST:
      depends: \Herloct\Codeception\Module\Slim

Or on your tests/functional.suite.yml, (*6)

modules:
  enabled:
    - \Helper\Functional
    - \Herloct\Codeception\Module\Slim:
        container: path/to/container.php
    - REST:
        depends: \Herloct\Codeception\Module\Slim

The container properties is a relative path to file which returns your App's Container.
Here is the minimum container.php contents., (*7)

require __DIR__.'/vendor/autoload.php';

use Psr\Container\ContainerInterface;
use Slim\App;
use Slim\Container;

$container = new Container([
    App::class => function (ContainerInterface $c) {
        $app = new App($c);

        // routes and middlewares here

        return $app;
    }
]);

return $container;

You could use this Sample Project as a reference., (*8)

API

  • app - instance of \Slim\App
  • container - instance of \Psr\Container\ContainerInterface
  • client - BrowserKit client

Todos

  • Add more acceptance/functional tests other than REST.

The Versions

04/03 2017

dev-master

9999999-dev https://github.com/herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Avatar herloct

module slim codeception

04/03 2017

1.1.0

1.1.0.0 https://github.com/herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Avatar herloct

module slim codeception

18/10 2016

1.0.4

1.0.4.0 https://github.com/herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  Sources   Download

MIT

The Requires

 

by Avatar herloct

module slim codeception

13/10 2016

1.0.3

1.0.3.0 https://github.com/herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar herloct

module slim codeception

11/10 2016

1.0.2

1.0.2.0 https://github.com/herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar herloct

module slim codeception

07/10 2016

1.0.1

1.0.1.0 https://github.com/herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar herloct

module slim codeception

07/10 2016

1.0.0

1.0.0.0 https://github.com/herloct/codeception-slim-module

Codeception Module for Slim 3 Microframework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar herloct

module slim codeception