forked from wandersonwhcr/balance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpunit.php
49 lines (41 loc) · 1.08 KB
/
phpunit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
namespace BalanceTest\Mvc
{
use Zend\Mvc\Application as MvcApplication;
/**
* Aplicativo MVC para Testes
*/
final class Application
{
/**
* Instância de Aplicativo para Acesso
* @type MvcApplication
*/
private static $application;
/**
* Configuração de Instância de Aplicativo
*
* @param MvcApplication $application Instância para Configuração
*/
public static function setApplication(MvcApplication $application)
{
self::$application = $application;
}
/**
* Apresentação de Instância de Aplicativo
*
* @return MvcApplication Instância Configurada
*/
public static function getApplication()
{
return self::$application;
}
}
}
namespace
{
chdir(__DIR__);
require 'vendor/autoload.php';
$application = Zend\Mvc\Application::init(require 'config/application.config.php');
BalanceTest\Mvc\Application::setApplication($application);
}