Test Setup Failed
Push — 1.x ( abc0aa...81440b )
by Adrien
15:44
created

SplEnumBench::benchCreateSeptemberMonth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * Part of SplTypes package.
5
 *
6
 * (c) Adrien Loyant <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ducks\Component\SplTypes\Tests\benchmark;
13
14
use Ducks\Component\SplTypes\SplBool;
15
16
class SplEnumBench
17
{
18
    public function __construct()
19
    {
20
        require __DIR__ . '/../common/Fixtures/Month.php';
21
    }
22
23
    /**
24
     * @Revs(1000)
25
     * @Iterations(5)
26
     *
27
     * @return void
28
     */
29
    public function benchCreateMonth()
30
    {
31
        new \Month();
32
    }
33
34
    /**
35
     * @Revs(1000)
36
     * @Iterations(5)
37
     *
38
     * @return void
39
     */
40
    public function benchCreateSeptemberMonth()
41
    {
42
        new \Month(\Month::SEPTEMBER);
43
    }
44
45
    /**
46
     * @Revs(1000)
47
     * @Iterations(5)
48
     *
49
     * @return void
50
     */
51
    public function benchCreateUnstrictMonth()
52
    {
53
        new \Month('1', false);
54
    }
55
}
56