/** * @covers ::inArray * @dataProvider provideArrayContainersToTest */ public function testCanSearchInsideArrayContainers($container, $path, $expectedResult) { // ---------------------------------------------------------------- // setup your test // ---------------------------------------------------------------- // perform the change $actualResult = HasUsingDotNotationPath::inArray($container, $path); // ---------------------------------------------------------------- // test the results $this->assertEquals($expectedResult, $actualResult); }