/** * @dataProvider data * @covers \Nerd\Arr::delete */ public function testArrDelete($users) { $this->assertCount(2, $users); // Remove one key and test count again Arr::delete($users, 'Frank'); $this->assertCount(1, $users); }
/** * Delete flash data using javascript dot notation * * @param string Flash data key * @returns void */ public function delete($key) { Arr::delete($_SESSION, "flash.{$key}"); }