You are here

public static function Inspector::assertAllStrictArrays in Zircon Profile 8.0

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

Asserts all members are strict arrays.

Parameters

mixed $traversable: Variable to be examined.

Return value

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

See also

::assertStrictArray

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

File

core/lib/Drupal/Component/Assertion/Inspector.php, line 180
Contains \Drupal\Component\Assertion\Inspector.

Class

Inspector
Generic inspections for the assert() statement.

Namespace

Drupal\Component\Assertion

Code

public static function assertAllStrictArrays($traversable) {
  return static::assertAll([
    __CLASS__,
    'assertStrictArray',
  ], $traversable);
}