| 1 | <?php |
||
| 9 | class DecimalInternalValidationTest extends PHPUnit_Framework_TestCase |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @expectedException \InvalidArgumentException |
||
| 13 | * @expectedExceptionMessage $value must be a non null number |
||
| 14 | */ |
||
| 15 | public function testConstructorNullValueValidation() |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @expectedException \InvalidArgumentException |
||
| 22 | * @expectedExceptionMessage $scale must be a positive integer |
||
| 23 | */ |
||
| 24 | public function testConstructorNegativeScaleValidation() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @expectedException \InvalidArgumentException |
||
| 31 | * @expectedExceptionMessage $scale must be a positive integer |
||
| 32 | */ |
||
| 33 | public function testConstructorNotIntegerScaleValidation() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @expectedException \InvalidArgumentException |
||
| 40 | * @expectedExceptionMessage $scale must be a positive integer |
||
| 41 | */ |
||
| 42 | public function testOperatorNegativeScaleValidation() |
||
| 48 | } |
||
| 49 |