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