Testing_DocTest
[ class tree: Testing_DocTest ] [ index: Testing_DocTest ] [ all elements ]

Source for file OutputterInterface.php

Documentation is available at OutputterInterface.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4.  
  5. /**
  6.  * This file is part of the PEAR Testing_DocTest package.
  7.  *
  8.  * PHP version 5
  9.  *
  10.  * LICENSE: This source file is subject to the MIT license that is available
  11.  * through the world-wide-web at the following URI:
  12.  * http://opensource.org/licenses/mit-license.php
  13.  *
  14.  * @category  Testing
  15.  * @package   Testing_DocTest
  16.  * @author    David JEAN LOUIS <izimobil@gmail.com>
  17.  * @copyright 2008 David JEAN LOUIS
  18.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  19.  * @version   CVS: $Id$
  20.  * @link      http://pear.php.net/package/Testing_DocTest
  21.  * @since     File available since release 0.1.0
  22.  * @filesource
  23.  */
  24.  
  25. /**
  26.  * DocTest Outputter interface.
  27.  * All outputters must implement this interface.
  28.  *
  29.  * @category  Testing
  30.  * @package   Testing_DocTest
  31.  * @author    David JEAN LOUIS <izimobil@gmail.com>
  32.  * @copyright 2008 David JEAN LOUIS
  33.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  34.  * @version   Release: 0.3.0
  35.  * @link      http://pear.php.net/package/Testing_DocTest
  36.  * @since     Class available since release 0.1.0
  37.  */
  38. {
  39.     // begin() {{{
  40.  
  41.     /**
  42.      * Begin of the DocTest session.
  43.      * The array parameter is as follows:
  44.      *
  45.      * <code>
  46.      * array(
  47.      *     '/path/to/file1.php' => array($testCase1, $testCase2),
  48.      *     '/path/to/file2.php' => array($testCase3, $testCase4),
  49.      *     [...]
  50.      *     '/path/to/fileN.php' => array($testCaseN),
  51.      * )
  52.      * </code>
  53.      *
  54.      * Note that the test cases provided in the array have not been run yet.
  55.      *
  56.      * @param array $files a multidimensional array of file=>testcase array
  57.      *
  58.      * @access public
  59.      * @return void 
  60.      */
  61.     public function begin(array $files);
  62.  
  63.     // }}}
  64.     // end() {{{
  65.  
  66.     /**
  67. /**
  68.      * End of the DocTest session.
  69.      * The array parameter is as follows:
  70.      *
  71.      * <code>
  72.      * array(
  73.      *     '/path/to/file1.php' => array($testCase1, $testCase2),
  74.      *     '/path/to/file2.php' => array($testCase3, $testCase4),
  75.      *     [...]
  76.      *     '/path/to/fileN.php' => array($testCaseN),
  77.      * )
  78.      * </code>
  79.      *
  80.      * @param array $files a multidimensional array of file=>testcase array
  81.      *
  82.      * @access public
  83.      * @return void 
  84.      */
  85.     public function end(array $files);
  86.  
  87.     // }}}
  88.     // beginFile() {{{
  89.  
  90.     /**
  91. /**
  92.      * Begin of file parsing.
  93.      *
  94.      * Note that the test cases provided in the array have not been run yet.
  95.      *
  96.      * @param string $file          path to the file that will be processed
  97.      * @param array  $testCaseArray an array of test case instances
  98.      *
  99.      * @access public
  100.      * @return void 
  101.      */
  102.     public function beginFile($filearray $testCaseArray);
  103.  
  104.     // }}}
  105.     // endFile() {{{
  106.  
  107.     /**
  108. /**
  109.      * End of file parsing.
  110.      *
  111.      * @param string $file          path to the file that will be processed
  112.      * @param array  $testCaseArray an array of test case instances
  113.      *
  114.      * @access public
  115.      * @return void 
  116.      */
  117.     public function endFile($filearray $testCaseArray);
  118.  
  119.     // }}}
  120.     // beginTestCase() {{{
  121.  
  122.     /**
  123. /**
  124.      * Begin of test case parsing.
  125.      *
  126.      * Note that the test case provided have not been run yet.
  127.      *
  128.      * @param object $testCase a test case instance
  129.      *
  130.      * @access public
  131.      * @return void 
  132.      */
  133.     public function beginTestCase(Testing_DocTest_TestCase $testCase);
  134.  
  135.     // }}}
  136.     // endTestCase() {{{
  137.  
  138.     /**
  139.      * End of test case parsing.
  140.      *
  141.      * @param object $testCase a test case instance
  142.      *
  143.      * @access public
  144.      * @return void 
  145.      */
  146.     public function endTestCase(Testing_DocTest_TestCase $testCase);
  147.  
  148.     // }}}
  149. }

Documentation generated on Mon, 11 Mar 2019 15:18:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.