2017 © Pedro Peláez
 

library testing-helpers

Helpers for view-components testing

image

view-components/testing-helpers

Helpers for view-components testing

  • Friday, June 24, 2016
  • by nayjest
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,111 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

Testing Helpers for ViewComponents

Build Status Release, (*1)

This repository contains utilities for testing PHP packages of ViewComponents family., (*2)

1. Overview

1.1. Web Application

Package contains simple ready to use web-application based on Silex for components show-case and acceptance tests., (*3)

1.1.1. Installation

If your package needs this web-application, add post-install script to composer.json:, (*4)

"scripts": {
        "post-install-cmd": [
            "ViewComponents\\TestingHelpers\\Installer\\Installer::postComposerInstall"
        ]
},

Post-install script will allow to configure web-application using command-line interface. If you use composer install command with -no-interaction option, default settings will be used., (*5)

1.1.2. Extending web-application

Packages that uses view-components/testing helpers can extend this application by adding it's controllers to WEBAPP_CONTROLLERS environmant variable., (*6)

Routing will be automatically generated using EasyRouting class., (*7)

1.1.3. Running web-application

Package contains serve command that is published to vendor/bin by composer., (*8)

Run it from your package folder to start web-server:, (*9)

./vendor/bin/serve

On Windows OS it will also open web-application in browser after starting web-server., (*10)

1.2. Acceptance tests with PhpUnit

1.2.1. Starting & shutting down web-server during tests

Use vendor/view-components/testing-helpers/bootstrap/tests_bootstrap.php as bootstrap file if you need to implement acceptance tests using PhpUnit., (*11)

1.2.2. Abstract acceptance test.

Use ViewComponents\TestingHelpers\Test\Acceptance\AbstractAcceptanceTest as base class for your acceptance tests. It allows to perform http requests using GuzzleHttp package and contains helper methods for assertions., (*12)

1.3. Fixtures

Package provides set of fixtures for testing. It consists of data that is seeded to database during installation and same data in form of php array., (*13)

2. Installation

Testing Helpers can be installed via composer., (*14)

Important: Do not add view-components/testing-helpers to require section of composer.json. It must be added to require-dev section., (*15)

3. License

© 2016 Vitalii Stepanenko, (*16)

Licensed under the MIT License., (*17)

Please see License File for more information., (*18)

The Versions

24/06 2016

dev-master

9999999-dev https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

24/06 2016

v2.0.3

2.0.3.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

24/06 2016

v2.0.2

2.0.2.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

07/04 2016

v2.0.1

2.0.1.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

07/04 2016

v2.0.0

2.0.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

05/04 2016

v1.11.0

1.11.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

31/03 2016

v1.10.0

1.10.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

28/03 2016

v1.9.0

1.9.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

23/03 2016

v1.8.1

1.8.1.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

23/03 2016

v1.8.0

1.8.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

21/03 2016

v1.7.0

1.7.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

17/03 2016

v1.6.0

1.6.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

16/03 2016

v1.4.1

1.4.1.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

16/03 2016

v1.5.0

1.5.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

15/03 2016

v1.4.0

1.4.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

15/03 2016

v1.3.0

1.3.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

14/03 2016

v1.2.2

1.2.2.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

03/03 2016

v1.2.1

1.2.1.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

test phpunit testing tests acceptance-tests acceptance-testing

02/03 2016

v1.2.0

1.2.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

laravel laravel4 laravel-4 laravel5 laravel-5

26/02 2016

v1.1.2

1.1.2.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

laravel laravel4 laravel-4 laravel5 laravel-5

26/02 2016

v1.1.1

1.1.1.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

laravel laravel4 laravel-4 laravel5 laravel-5

25/02 2016

v1.1.0

1.1.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

laravel laravel4 laravel-4 laravel5 laravel-5

25/02 2016

v1.0.2

1.0.2.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

laravel laravel4 laravel-4 laravel5 laravel-5

25/02 2016

v1.0.1

1.0.1.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

laravel laravel4 laravel-4 laravel5 laravel-5

25/02 2016

v1.0.0

1.0.0.0 https://github.com/view-components/testing-helpers

Helpers for view-components testing

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

laravel laravel4 laravel-4 laravel5 laravel-5