private function get_all_tests()
 {
     if ($this->tests === null) {
         include_once PATH_TO_ROOT . '/test/util/phpboost_unit_tests.inc.php';
         $this->tests = list_tu(PATH_TO_ROOT . '/test/kernel');
     }
     return $this->tests;
 }
Example #2
0
			            <span>html output:</span>
			            <input type="checkbox" name="is_html" id="is_html">
                    </td>
		            <td class="run-options-set">
	                    <input type="button" name="run" value="run command" class="run-button"
			                onclick="self.frames['phpunit'].location='run.php?is_html=' +
					        (document.getElementById('is_html').checked ? '1' : '0') +
					        '&amp;params=' + document.getElementById('params').value;" />
                    </td>
                </tr>
                <tr>
                    <td class="options-set-name"><span>unit tests</span></td>
                    <td class="options-set">
                        <select id="tus" name="tus">
<?php 
foreach (list_tu('./kernel') as $tu) {
    echo '<option value="./kernel/' . $tu . '">' . $tu . '</option>';
}
?>
                        </select>
                    </td>
                    <td class="run-options-set">
                        <input type="button" name="run_tu" value="run unit test" class="run-button"
                            onclick="self.frames['phpunit'].location='run.php?is_html=0' +
                            '&amp;params=' + document.getElementById('tus').value;" />
                    </td>
                </tr>
                <tr>
                    <td class="options-set-name"><span>tests suite</span></td>
                    <td class="options-set">
                        <select id="ts" name="ts">
 private function get_tests()
 {
     include_once PATH_TO_ROOT . '/test/util/phpboost_unit_tests.inc.php';
     $tests = list_tu(PATH_TO_ROOT . '/test/kernel');
     return $this->extract_tests_names($tests);
 }