Yet another minor release. It introduces more compact form for unit tests.
We moved all Codeception’s setUp and tearDown routine into parrent class and left you more clean
_after methods for your preperations.
They act just the same as
tearDown for PHPUnit. So
_before is executed before each test and
_after after it.
Tests should look more clean now. If your tests already have setUp and tearDown methods nothing is changed for them.
Accessing Modules in Unit Tests
Another nice feature for Symfony2 users and not only them. Form now on you can access a module from your unit test.
This is done to access public properties of your module. For example, here is how you can retrieve a Symfony Dependency Injection Container:
Also we’d like to announce the upcoming modules for Yii and Laravel frameworks.
In the meantime we will release more complete guides on How to integrate framework to Codeception.
- Composer build is finally is stable and doesn’t require
minimal-stability: dev. Thanks to: jacobkiers.
- Adding support of
pecl_http by phpcodemonkey.
- Methods of Guy received documentation and examples (phar bug).
generate:cest command requires a tested class name no more.
- PostgreSQL driver improved .
codeception.phar for update:
for composer version
or via PEAR: