function NestedArrayTest::testFilter
@covers ::filter
@dataProvider providerTestFilter
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ NestedArrayTest.php, line 267
Class
- NestedArrayTest
- @coversDefaultClass \Drupal\Component\Utility\NestedArray[[api-linebreak]] @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
public function testFilter($array, $callable, $expected) : void {
$this->assertEquals($expected, NestedArray::filter($array, $callable));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.