Skip to content

Commit

Permalink
Merge pull request #17 from interactive-solutions/countable-check-type
Browse files Browse the repository at this point in the history
Added a new type to check against
  • Loading branch information
Hotas2k authored Feb 16, 2018
2 parents a142770 + f423c0e commit bb26be1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Context/ApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,10 @@ public function theBooleanFieldFieldShouldBeValue($typeOfValue, $field, $directi
case 'nullable':
$shouldBe = null;
break;
case 'countable':
$shouldBe = (int)$shouldBe;
$body = count($body);
break;
default:
$shouldBe = (string)$shouldBe;
}
Expand Down

0 comments on commit bb26be1

Please sign in to comment.