Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function testBase(): void |
||
15 | { |
||
16 | $exception = new UnexpectedRuleException(Number::class, new stdClass()); |
||
17 | |||
18 | $this->assertSame('Expected "Yiisoft\Validator\Rule\Number", but "stdClass" given.', $exception->getMessage()); |
||
19 | $this->assertSame(0, $exception->getCode()); |
||
20 | $this->assertNull($exception->getPrevious()); |
||
21 | } |
||
23 |