Passed
Pull Request — master (#59)
by Kevin
18:04
created

UnpersistingFactories   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 3
c 1
b 0
f 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A _setUpFactories() 0 3 1
A _tearDownFactories() 0 3 1
1
<?php
2
3
namespace Zenstruck\Foundry\Test;
4
5
/**
6
 * @author Kevin Bond <[email protected]>
7
 */
8
trait UnpersistingFactories
9
{
10
    /**
11
     * @internal
12
     * @before
13
     */
14
    public static function _setUpFactories(): void
15
    {
16
        TestState::bootFoundry();
17
    }
18
19
    /**
20
     * @internal
21
     * @after
22
     */
23
    public static function _tearDownFactories(): void
24
    {
25
        TestState::shutdownFoundry();
26
    }
27
}
28