You are here

public static function Inspector::assertAllArrays in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllArrays()

Asserts that all members are arrays.

Parameters

mixed $traversable: Variable to be examined.

Return value

bool TRUE if $traversable can be traversed and all members are arrays.

1 call to Inspector::assertAllArrays()
InspectorTest::testAssertAllArrays in core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
Tests asserting all members are arrays.

File

core/lib/Drupal/Component/Assertion/Inspector.php, line 130

Class

Inspector
Generic inspections for the assert() statement.

Namespace

Drupal\Component\Assertion

Code

public static function assertAllArrays($traversable) {
  return static::assertAll('is_array', $traversable);
}