Exemplo n.º 1
0
 /**
  * test the CCArr isset
  */
 public function testArrayHasItem()
 {
     /*
      * get string
      */
     $this->assertTrue(CCArr::has('string', $this->test_array));
     /*
      * get not existing
      */
     $this->assertFalse(CCArr::has('not.existing', $this->test_array));
 }
Exemplo n.º 2
0
 /**
  * check if data exsists for key
  *
  * @param string 	$key
  * @return mixed
  */
 public function has($key)
 {
     return CCArr::has($key, $this->_data);
 }