public function testGetAndRemove_testNotFound() { $input = array('a' => 'A', 'b' => 'B', 'c' => 'C'); $value = ArrayUtil::getAndRemove($input, 'd', 'notfound'); $this->assertEquals('notfound', $value); $this->assertEquals(3, count($input)); }