public function test_pop() { $arr = array('key1' => 'value1', 'key2' => 'value2'); $this->assertEquals(Core_Arrays::pop($arr), 'value2'); $this->assertEquals($arr, array('key1' => 'value1')); }