copyFrom() public méthode

Note, existing data in the list will be cleared first.
public copyFrom ( $data )
Exemple #1
0
 public function testCanNotCopyFromNonTraversableTypes()
 {
     $stack = new TStack();
     $data = new stdClass();
     try {
         $stack->copyFrom($data);
     } catch (TInvalidDataTypeException $e) {
         return;
     }
     self::fail('An expected TInvalidDataTypeException was not raised');
 }