示例#1
0
 /**
  * @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);
 }
示例#2
0
 /**
  * Delete flash data using javascript dot notation
  *
  * @param    string     Flash data key
  * @returns  void
  */
 public function delete($key)
 {
     Arr::delete($_SESSION, "flash.{$key}");
 }