Ejemplo n.º 1
0
 public function testShuffle()
 {
     $array = CArray::fromElements("a", "b", "c", "d", "e", "f", "g", "h", "i");
     $arrayOrig = CArray::makeCopy($array);
     CArray::shuffle($array);
     $this->assertTrue(CArray::isSubsetOf($array, $arrayOrig));
 }
Ejemplo n.º 2
0
 /**
  * @ignore
  */
 public function __clone()
 {
     $this->m_components = CArray::makeCopy($this->m_components);
 }