Trait BootTraits.
Boot traits in tests.
For add new trait:
Create trait
Add method boot
| example |
lang="php"> class AssertionTest extends PHPUnit\Framework\TestCase { use Tests\BootTraits, Tests\CustomTrait; public function setUp() { parent::setUp(); $this->_boot(); } public function tearDown() { parent::tearDown(); $this->_unBoot(); } } class CustomTrait { public function bootCustomTrait() { // some run }
} |
|---|---|
| author |
Donii Sergii doniysa@gmail.com |
| package |
Default |
_boot()
| Throws |
|
|---|
_unBoot()
| author |
Donii Sergii doniysa@gmail.com |
|---|---|
| Throws |
|
checkTraits(string $prefix = '')
| author |
Donii Sergii doniysa@gmail.com |
|---|---|
| Throws |
|
stringMethod name prefix