Source for file TestSuite.php
Documentation is available at TestSuite.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* This file is part of the PEAR Testing_DocTest package.
* LICENSE: This source file is subject to the MIT license that is available
* through the world-wide-web at the following URI:
* http://opensource.org/licenses/mit-license.php
* @package Testing_DocTest
* @author David JEAN LOUIS <izimobil@gmail.com>
* @copyright 2008 David JEAN LOUIS
* @license http://opensource.org/licenses/mit-license.php MIT License
* @link http://pear.php.net/package/Testing_DocTest
* @since File available since release 0.1.0
* This class is a container for a "suite" of test cases.
* @package Testing_DocTest
* @author David JEAN LOUIS <izimobil@gmail.com>
* @copyright 2008 David JEAN LOUIS
* @license http://opensource.org/licenses/mit-license.php MIT License
* @version Release: 0.6.0
* @link http://pear.php.net/package/Testing_DocTest
* @since Class available since release 0.1.0
* The registry items array.
* @var array $_properties
private $_properties = array ('name' => null );
private $_testCases = array ();
* Add a test case to the suite.
* @param object $case a Testing_DocTest_TestCase instance.
public function addTestCase(Testing_DocTest_TestCase $case)
$this->_testCases[] = $case;
* String representation of the suite.
* @param string $name name of property
* @param mixed $value value of property
public function __set($name, $value)
$this->_properties[$name] = $value;
* @param string $name name of property
public function __get($name)
if (isset ($this->_properties[$name])) {
return $this->_properties[$name];
// IteratorAggregate interface implementation {{{
* Part of IteratorAggregate interface implementation.
return $this->_cases[$this->key()];
* Part of IteratorAggregate interface implementation.
return key($this->_testCases);
* Part of IteratorAggregate interface implementation.
* Part of IteratorAggregate interface implementation.
reset($this->_testCases);
* Part of IteratorAggregate interface implementation.
return current($this->_testCases) !== false;
* Part of IteratorAggregate interface implementation.
* @return object instance of ArrayObject
return new ArrayObject ($this->_testCases);
// Countable interface implementation {{{
* Part of Countable interface implementation.
* @return object instance of ArrayObject
return count($this->_testCases);
Documentation generated on Mon, 11 Mar 2019 15:52:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|