Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 18 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
34 | View Code Duplication | public function testMatchSimulator() |
|
35 | { |
||
36 | $match = \App\Lib\DsManager\Models\Orm\Match::where( |
||
37 | [ |
||
38 | 'simulated' => false |
||
39 | ] |
||
40 | )->get()->random(1); |
||
41 | $this->assertNotEmpty($match); |
||
42 | $result = \App\Lib\DsManager\Helpers\MatchSimulator::simulate($match->id); |
||
43 | $this->assertNotEmpty($result); |
||
44 | $match = \App\Lib\DsManager\Models\Orm\Match::where( |
||
45 | [ |
||
46 | 'id' => $match->id, |
||
47 | 'simulated' => true |
||
48 | ] |
||
49 | )->first(); |
||
50 | $this->assertNotEmpty($match); |
||
51 | } |
||
52 | |||
79 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.