Semantic MediaWiki and related extensions
Public Member Functions | Protected Attributes | List of all members
SMW\Tests\Utils\Runners\MaintenanceRunner Class Reference

Public Member Functions

 __construct ($maintenanceClass, $options=array())
 
 setOptions (array $options)
 
 setQuiet ()
 
 run ()
 
 getOutput ()
 

Protected Attributes

 $maintenanceClass = null
 
 $options = array()
 
 $output = null
 
 $quiet = false
 

Detailed Description

Running maintenance scripts via phpunit is not really possible but instead this class allows to execute script related classes that are equivalent to: php rebuildData.php --< myOptions >

SMW SMWExtension

GNU GPL v2+

Since
1.9.2
Author
mwjames

Constructor & Destructor Documentation

SMW\Tests\Utils\Runners\MaintenanceRunner::__construct (   $maintenanceClass,
  $options = array() 
)
Since
1.9.2
Parameters
string$maintenanceClass
array$options

Member Function Documentation

SMW\Tests\Utils\Runners\MaintenanceRunner::getOutput ( )
Since
1.9.2
Returns
string
SMW\Tests\Utils\Runners\MaintenanceRunner::run ( )
Since
1.9.2
Returns
boolean
Exceptions
RuntimeException
DomainException
SMW\Tests\Utils\Runners\MaintenanceRunner::setOptions ( array  $options)
Since
1.9.2
Parameters
array$options
Returns
MaintenanceRunner
SMW\Tests\Utils\Runners\MaintenanceRunner::setQuiet ( )
Since
1.9.2
Returns
MaintenanceRunner

Member Data Documentation

SMW\Tests\Utils\Runners\MaintenanceRunner::$maintenanceClass = null
protected
SMW\Tests\Utils\Runners\MaintenanceRunner::$options = array()
protected
SMW\Tests\Utils\Runners\MaintenanceRunner::$output = null
protected
SMW\Tests\Utils\Runners\MaintenanceRunner::$quiet = false
protected

The documentation for this class was generated from the following file: