/** * @covers Fuel\Common\Arr::inArrayRecursive * @group Common */ public function testInArrayRecursive() { $input = array(0 => 'zero', 1 => 'one', 2 => array('two'), 3 => 3); $this->assertTrue(Arr::inArrayRecursive('one', $input)); $this->assertTrue(Arr::inArrayRecursive('one', $input, true)); $this->assertTrue(Arr::inArrayRecursive('two', $input)); $this->assertTrue(Arr::inArrayRecursive('two', $input, true)); $this->assertTrue(Arr::inArrayRecursive(3, $input)); $this->assertTrue(Arr::inArrayRecursive(3, $input, true)); $this->assertTrue(Arr::inArrayRecursive('3', $input)); $this->assertFalse(Arr::inArrayRecursive('3', $input, true)); }