Exemple #1
0
    /**
     * Render a list of classes
     */
    public static function render_classes($Classes)
    {
        ?>
		<table>
			<tr class="colhead">
				<td>
					Class
				</td>
				<td>
					Testable functions
				</td>
			</tr>
<?php 
        foreach ($Classes as $Key => $Value) {
            $Doc = Testing::get_class_comment($Key);
            $Methods = count(Testing::get_testable_methods($Key));
            ?>
				<tr>
					<td>
						<a href="testing.php?action=class&amp;name=<?php 
            echo $Key;
            ?>
" class="tooltip" title="<?php 
            echo $Doc;
            ?>
"><?php 
            echo $Key;
            ?>
</a>
					</td>
					<td>
						<?php 
            echo $Methods;
            ?>
					</td>
				</tr>
<?php 
        }
        ?>
		</table>
<?php 
    }
Exemple #2
0
<?php

if (!check_perms('users_mod')) {
    error(404);
}
$Class = $_GET['name'];
if (!empty($Class) && !Testing::has_class($Class)) {
    error("Missing class");
}
View::show_header("Tests", "testing");
?>
<div class="header">
	<h2><?php 
echo $Class;
?>
</h2>
	<?php 
echo TestingView::render_linkbox("class");
?>
</div>

<div class="thin">
	<?php 
echo TestingView::render_functions(Testing::get_testable_methods($Class));
?>
</div>

<?php 
View::show_footer();