mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add additional test for -0.0
In PHP5 `-0.0` doesn't work. Include the other way of making -0 for PHP5. Refs #10521
This commit is contained in:
parent
9007a7fe58
commit
ea05b04193
1 changed files with 4 additions and 4 deletions
|
@ -148,10 +148,10 @@ class ValidationTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testNotBlank() {
|
||||
$this->assertTrue(Validation::notBlank(0));
|
||||
$this->assertTrue(Validation::notBlank(0.0));
|
||||
$this->assertTrue(Validation::notBlank(-0));
|
||||
$this->assertTrue(Validation::notBlank(-0.0));
|
||||
$this->assertTrue(Validation::notBlank(0), 'zero should not be blank');
|
||||
$this->assertTrue(Validation::notBlank(0.0), 'zero should not be blank');
|
||||
$this->assertTrue(Validation::notBlank(0.0 * -1), 'negative 0 should not be blank');
|
||||
$this->assertTrue(Validation::notBlank(-0.0), 'negative 0 should not be blank');
|
||||
$this->assertTrue(Validation::notBlank('abcdefg'));
|
||||
$this->assertTrue(Validation::notBlank('fasdf '));
|
||||
$this->assertTrue(Validation::notBlank('fooo' . chr(243) . 'blabla'));
|
||||
|
|
Loading…
Reference in a new issue