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'); }