PHPackages                             luk4z7/boot-tests - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. luk4z7/boot-tests

ActiveLibrary[Testing &amp; Quality](/categories/testing)

luk4z7/boot-tests
=================

Bootstrap para os tests executados em ZF2 com PHPUnit

1.0.3(10y ago)116MITPHPPHP &gt;=5.3.3

Since Jan 9Pushed 10y agoCompare

[ Source](https://github.com/luk4z7/BootTests)[ Packagist](https://packagist.org/packages/luk4z7/boot-tests)[ RSS](/packages/luk4z7-boot-tests/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

BootTests
=========

[](#boottests)

**Configuração no arquivo `application.config.php`**

```
return array(
    'modules' => array(
        'YourModulesInExecution'
    ),
    'module_listener_options' => array(
        'module_paths' => array(
            './module',
            './vendor',
        ),
        'config_glob_paths' => array(
            'config/autoload/{,*.}{global,local}.php',
        ),
    ),
	'module_tests' => [
		'YourModulesForTests',
		'Exemplo1',
		'Exemplo2',
		'Exemplo3'
	]
);
```

**Estrutura de pastas para execução dos tests**

```
YourModule
    config
    src
    tests
        src => yourTests
        Bootstrap.php => arquivo de inicialização
        phpunit.xml => arquivo de configuração dos tests
    db => pasta para instruções SQL
        create.sql
        drop.sql
    view
    Module.php

```

**Arquivo de inicialização do PHPUnit**

```
touch /var/www/yourproject/module/YourModule/tests/Bootstrap.php

```

```
namespace YourModule;

require_once(getcwd() . '/../../../vendor/hiamina/son-base/src/BootTests/Test/AbstractBootstrap.php');

use BootTests\Test\AbstractBootstrap;

error_reporting(E_ALL | E_STRICT);
chdir(__DIR__);

class Bootstrap extends AbstractBootstrap {}
Bootstrap::init();
```

**Arquivo de configuração dos tests PHPUnit**

```
touch /var/www/yourproject/module/YourModule/tests/phpunit.xml

```

Para mais detalhes sobre a configuração desse arquivo analisar na documentação do PHPUnit [Documentação phpunit.de](https://phpunit.de/manual/current/en/organizing-tests.html#organizing-tests.xml-configuration)

```

            ./src/YourModule/Controller
            ./src/YourModule/Filter
            ./src/YourModule/Form

			../

				../Module.php
				../config
				../tests

```

**Execução dos tests**

```
cd /var/www/yourproject/module/YourModule/tests/
php ../../../vendor/bin/phpunit (Pode ser executado de diversas maneiras, somente ilustrando uma das maneiras)

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~328 days

Total

4

Last Release

3892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e053ba2a058dc227ea86c3d246e322388798ff78fe62ec307973551c256063ff?d=identicon)[luk4z7](/maintainers/luk4z7)

---

Top Contributors

[![wesleywillians](https://avatars.githubusercontent.com/u/399218?v=4)](https://github.com/wesleywillians "wesleywillians (12 commits)")[![luk4z7](https://avatars.githubusercontent.com/u/2353335?v=4)](https://github.com/luk4z7 "luk4z7 (5 commits)")

---

Tags

phpphpunitzf2

### Embed Badge

![Health badge](/badges/luk4z7-boot-tests/health.svg)

```
[![Health](https://phpackages.com/badges/luk4z7-boot-tests/health.svg)](https://phpackages.com/packages/luk4z7-boot-tests)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

78768.9M1.5k](/packages/phpstan-phpstan-symfony)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
