Skip to content

Commit

Permalink
Add test cases for new comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
BackEndTea committed Mar 8, 2019
1 parent 126c358 commit c1ba65e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tests/Mutator/Number/DecrementIntegerTest.php
Expand Up @@ -334,6 +334,51 @@ public function provideMutationCases(): array
<?php
$foo = 1;
PHP
],
'It does not decrement zero when it is being compared as identical with result of grapheme_strlen()' => [
<<<'PHP'
<?php
if (grapheme_strlen($a) === 0) {
echo 'bar';
}
PHP
],
'It does not decrement zero when it is being compared as identical with result of iconv_strlen()' => [
<<<'PHP'
<?php
if (iconv_strlen($a) === 0) {
echo 'bar';
}
PHP
],
'It does not decrement zero when it is being compared as identical with result of mb_strlen()' => [
<<<'PHP'
<?php
if (mb_strlen($a) === 0) {
echo 'bar';
}
PHP
],
'It does not decrement zero when it is being compared as identical with result of sizeof()' => [
<<<'PHP'
<?php
if (sizeof($a) === 0) {
echo 'bar';
}
PHP
],
'It does not decrement zero when it is being compared as identical with result of strlen()' => [
<<<'PHP'
<?php
if (strlen($a) === 0) {
echo 'bar';
}
PHP
],
];
Expand Down

0 comments on commit c1ba65e

Please sign in to comment.