phpDocumentor Gallery
PHPUnit
[ class tree: Gallery ] [ index: Gallery ] [ all elements ]

Procedural File: index.php

Source Location: /lib/tools/phpunit/index.php

Page Details

Script for running unit tests

Classes
Class Description
GalleryTestResult
Includes
include ('../../../bootstrap.inc') [line 28]
[ Top ]

include (dirname(__FILE__).'/runframe.tpl') [line 51]
[ Top ]

include (dirname(__FILE__).'/index.tpl') [line 546]
[ Top ]

include ('../../support/security.inc') [line 27]
[ Top ]

require_once ('GalleryViewTestCase.class') [line 136]
[ Top ]

require_once ('GalleryControllerTestCase.class') [line 135]
[ Top ]

require_once ('../../../init.inc') [line 29]
[ Top ]

require_once ('../../../main.php') [line 88]

Load up main.php so that tests that want _GalleryMain can get to it. Do it now, though so that we don't mangle the $gallery object during test runs.

Information Tags:
Todo:  figure out a way to only do this if we're going to run a test that wants to exercise _GalleryMain
[ Top ]

require_once ('UnitTestPlatform.class') [line 142]
[ Top ]

require_once ('phpunit.inc') [line 132]
[ Top ]

require_once ('ItemAddPluginTestCase.class') [line 137]
[ Top ]

require_once ('ItemEditPluginTestCase.class') [line 138]
[ Top ]

require_once ('ItemEditOptionTestCase.class') [line 139]
[ Top ]

require_once ('CodeAuditTestCase.class') [line 140]
[ Top ]

require_once ('UnitTestTemplate.class') [line 147]
[ Top ]

require_once ('UnitTestUrlGenerator.class') [line 145]
[ Top ]

require_once ('UnitTestPhpVm.class') [line 144]
[ Top ]

require_once ('UnitTestStorage.class') [line 143]
[ Top ]

require_once ('MockTemplateAdapter.class') [line 146]
[ Top ]

require_once ('UnitTestRepository.class') [line 148]
[ Top ]

require_once ('GalleryTestCase.class') [line 133]
[ Top ]

require_once ('MockObject.class') [line 141]
[ Top ]

require_once ('UnitTestRepositoryUtilities.class') [line 149]
[ Top ]

require_once ('GalleryImmediateViewTestCase.class') [line 134]
[ Top ]


Constants
FILTER_MAX  [line 435]

FILTER_MAX = 1000000

[ Top ]

G2_SUPPORT_URL_FRAGMENT  [line 25]

G2_SUPPORT_URL_FRAGMENT = '../../support/'

Script for running unit tests


[ Top ]


Functions
loadTests  [line 243]

void loadTests( $moduleId, $testDir, $filter  )
Parameters:
   $moduleId: 
   $testDir: 
   $filter: 


[ Top ]
PhpUnitGalleryMain  [line 151]

void PhpUnitGalleryMain( &$testSuite, $filter  )
Parameters:
   &$testSuite: 
   $filter: 


[ Top ]
PhpUnitOutputInterceptor  [line 97]

void PhpUnitOutputInterceptor( $message  )

This is an output interceptor that allows us to save the HTML output from our test run in the g2data directory. We only save the output when there's a filter value set which indicates that there's an actual test run in progress.

Parameters:
   $message: 


[ Top ]


Documentation generated on Wed, 20 Aug 2008 05:29:19 -0700 by phpDocumentor 1.3.0RC6