| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 17 |
| Ratio | 100 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php namespace BuildR\TestTools\Asserts; |
||
| 40 | 6 | View Code Duplication | protected function matches($other) { |
| 41 | 6 | if(!is_string($other)) { |
|
| 42 | 1 | return FALSE; |
|
| 43 | } |
||
| 44 | |||
| 45 | 5 | if(!defined($other)) { |
|
| 46 | 1 | return FALSE; |
|
| 47 | } |
||
| 48 | |||
| 49 | 4 | if(constant($other) === $this->value) { |
|
| 50 | 4 | return TRUE; |
|
| 51 | } |
||
| 52 | |||
| 53 | //@codeCoverageIgnoreStart |
||
| 54 | return FALSE; |
||
| 55 | //@codeCoverageIgnoreEnd |
||
| 56 | } |
||
| 57 | |||
| 66 |