mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
adding basic test
This commit is contained in:
parent
213d4caa85
commit
0be1943bcd
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ class CakeNumberTest extends CakeTestCase {
|
|||
public function testFormatDelta() {
|
||||
$value = '100100100';
|
||||
|
||||
$result = $this->Number->formatDelta($value);
|
||||
$expected = '+100,100,100.00';
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
$result = $this->Number->formatDelta($value, array('before' => '', 'after' => ''));
|
||||
$expected = '+100,100,100.00';
|
||||
$this->assertEquals($expected, $result);
|
||||
|
|
Loading…
Reference in a new issue