Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testFormat($num, $text) |
||
27 | { |
||
28 | $component = Yii::createObject([ |
||
29 | 'class' => MyComponentTest::class, |
||
30 | 'number' => $num, |
||
31 | 'notNumber' => $text |
||
32 | ]); |
||
33 | |||
34 | $this->assertEquals($text, $component->numberFormat); |
||
35 | $this->assertFalse($component->notNumberFormat); |
||
36 | } |
||
37 | |||
57 |