~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/zipcart/test/phpunit/ZipCartDownloadTest.class

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * $RCSfile: ZipCartDownloadTest.class,v $
4
4
 *
5
5
 * Gallery - a web based photo album viewer and editor
6
 
 * Copyright (C) 2000-2005 Bharat Mediratta
 
6
 * Copyright (C) 2000-2006 Bharat Mediratta
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
9
9
 * it under the terms of the GNU General Public License as published by
20
20
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
21
21
 */
22
22
/**
23
 
 * @version $Revision: 1.2.2.2 $ $Date: 2005/11/23 21:17:26 $
 
23
 * @version $Revision: 1.3 $ $Date: 2006/01/10 04:43:43 $
24
24
 * @package ZipCart
25
25
 * @subpackage PHPUnit
26
26
 * @author Alan Harder <alan.harder@sun.com>
43
43
        parent::setUp();
44
44
 
45
45
        list ($ret, $this->_view) = GalleryView::loadView('zipcart.Download');
46
 
        if ($ret->isError()) {
 
46
        if ($ret) {
47
47
            print $ret->getAsHtml();
48
48
            return $this->failWithStatus($ret->wrap(__FILE__, __LINE__));
49
49
        }
70
70
 
71
71
        ob_start();
72
72
        $ret = $this->_view->renderImmediate(array(), array());
73
 
        if ($ret->isError()) {
 
73
        if ($ret) {
74
74
            return $this->failWithStatus($ret->wrap(__FILE__, __LINE__));
75
75
        }
76
76
        $output = ob_get_contents();
101
101
 
102
102
        ob_start();
103
103
        $ret = $this->_view->renderImmediate(array(), array());
104
 
        if ($ret->isError()) {
 
104
        if ($ret) {
105
105
            return $this->failWithStatus($ret->wrap(__FILE__, __LINE__));
106
106
        }
107
107
        $output = ob_get_contents();
125
125
 
126
126
        ob_start();
127
127
        $ret = $this->_view->renderImmediate(array(), array());
128
 
        if ($ret->isError()) {
 
128
        if ($ret) {
129
129
            return $this->failWithStatus($ret->wrap(__FILE__, __LINE__));
130
130
        }
131
131
        $output = ob_get_contents();
147
147
 
148
148
        ob_start();
149
149
        $ret = $this->_view->renderImmediate(array(), array());
150
 
        if ($ret->isError()) {
 
150
        if ($ret) {
151
151
            return $this->failWithStatus($ret->wrap(__FILE__, __LINE__));
152
152
        }
153
153
        $output = ob_get_contents();