Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | final class DocLexerPerformanceBench |
||
13 | { |
||
14 | use MethodInitializer; |
||
15 | |||
16 | /** @var DocLexer */ |
||
17 | private $lexer; |
||
18 | |||
19 | public function initialize() : void |
||
20 | { |
||
21 | $this->lexer = new DocLexer(); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @Revs(500) |
||
26 | * @Iterations(5) |
||
27 | */ |
||
28 | public function benchMethod() : void |
||
29 | { |
||
30 | $this->lexer->setInput($this->methodDocBlock); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @Revs(500) |
||
35 | * @Iterations(5) |
||
36 | */ |
||
37 | public function benchClass() : void |
||
40 | } |
||
41 | } |
||
42 |