You are here

8 calls to Inspector::assertTraversable() in Drupal 9

Inspector::assertAll in core/lib/Drupal/Component/Assertion/Inspector.php
Asserts callback returns TRUE for each member of a traversable.
Inspector::assertAllHaveKey in core/lib/Drupal/Component/Assertion/Inspector.php
Asserts all given keys exist in every member array.
Inspector::assertAllMatch in core/lib/Drupal/Component/Assertion/Inspector.php
Asserts that all members are strings that contain the specified string.
Inspector::assertAllNotEmpty in core/lib/Drupal/Component/Assertion/Inspector.php
Asserts that all members are not empty.
Inspector::assertAllObjects in core/lib/Drupal/Component/Assertion/Inspector.php
Asserts that all members are objects.
Inspector::assertAllRegularExpressionMatch in core/lib/Drupal/Component/Assertion/Inspector.php
Asserts that all members are strings matching a regular expression.
Inspector::assertAllStringable in core/lib/Drupal/Component/Assertion/Inspector.php
Asserts all members are strings or objects with magic __toString() method.
InspectorTest::testAssertTraversable in core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
Tests asserting argument is an array or traversable object.