| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | 4 | public function __construct($variableName, $variableValue) |
|
| 21 | { |
||
| 22 | 4 | if (!is_string($variableName)) { |
|
| 23 | 1 | throw new InvalidStringException('variableName', $variableName); |
|
| 24 | } |
||
| 25 | |||
| 26 | 3 | parent::__construct( |
|
| 27 | 3 | sprintf( |
|
| 28 | 3 | 'Variable "$%s" must be not same as: "%s"', |
|
| 29 | 3 | $variableName, |
|
| 30 | 3 | print_r($variableValue, true) |
|
| 31 | 3 | ) |
|
| 32 | 3 | ); |
|
| 33 | 3 | } |
|
| 34 | } |
||
| 35 |