function Inspector::assertAllIntegers
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllIntegers()
- 10 core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllIntegers()
- 11.x core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllIntegers()
Asserts that all members are integer values.
Parameters
mixed $traversable: Variable to be examined.
Return value
bool TRUE if $traversable can be traversed and all members are integers.
1 call to Inspector::assertAllIntegers()
- InspectorTest::testAssertAllIntegers in core/
tests/ Drupal/ Tests/ Component/ Assertion/ InspectorTest.php - Tests asserting all members are integers.
File
-
core/
lib/ Drupal/ Component/ Assertion/ Inspector.php, line 232
Class
Namespace
Drupal\Component\AssertionCode
public static function assertAllIntegers($traversable) {
return static::assertAll('is_int', $traversable);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.