Download the PHP package heartsentwined/zf2-phpunit-testcase without Composer
On this page you can find all versions of the php package heartsentwined/zf2-phpunit-testcase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heartsentwined/zf2-phpunit-testcase
More information about heartsentwined/zf2-phpunit-testcase
Files in heartsentwined/zf2-phpunit-testcase
Package zf2-phpunit-testcase
Short Description PHPUnit test case base classes for ZF2 applications.
License ISC
Homepage https://github.com/yalesov/zf2-phpunit-testcase
Informations about the package zf2-phpunit-testcase
zf2-phpunit-testcase
PHPUnit test case base classes for ZF2 applications.
Installation
PHPUnit is not bundled with this package. You can install it through PEAR and use the CLI at phpunit
:
Usage
First, you will need a bootstrap file which returns Zend\Mvc\Application
. Here is an example:
Now, on to the test case base classes:
Zf
Bootstrap your Zf2 application with the bootstrap file foo/bootstrap.php
:
Doctrine
Bootstrap your Zf2 application with the bootstrap file foo/bootstrap.php
, and with Doctrine ORM support. Your EntityManager
is aliased with the ServiceManager at doctrine.entitymanager.orm_default
.
(Optional) You have declared the directory foo/tmp
as a temporary directory somewhere in your config files - possibly for storing Proxies, and you want this directory to be created before each test; and deleted after each test. (i.e. during setUp() and teardown())
All versions of zf2-phpunit-testcase with dependencies
zendframework/zendframework Version 2.*
yalesov/arg-validator Version 2.*
yalesov/zf2-doctrine Version 2.*
yalesov/file-system-manager Version 2.*