Location: PHPKode > projects > GnomePHP > peec-GnomePHP-b5a360b/gnomephp/res/view/testsuite/index.php
<html>
<head>
	<title><?php echo $testName ?></title>
	<style type="text/css">
		body{
			text-align: center;
			
		}
		.box{
			text-align: left;
			margin: 0 auto 0 auto;
			width: 500px;
			border: 1px grey solid;
			padding: 15px;
		}
		.error h3{
			color: red;
		}
		.success h3{
			color: green;
		}
		.summary{
			padding: 15px;
		}
		.error .summary{
			background-color: red;
			color: white;
		}
		.success .summary{
			background-color: green;
			color: white;
		}
	</style>
</head>
<body>
	<div id="container">
	<h1><?php echo $testName ?></h1>
		<div class="box">
			
			<div class="<?php echo $failtest ? 'error' : 'success'; ?>">
				<h3><?php echo $failtest ? 'Error' : 'Success'; ?></h3>
				<?php 
foreach($cases as $method => $values){
	echo "<p>$method<ul>";
	foreach($values as $case){
		echo "<li>" . ($case->getName() ? '<strong>Test name: </strong>'.htmlentities($case->getName()) : '<strong>Test value: </strong>'.htmlentities($case->getValue())) . "<ul>";
		foreach($case->getFailedAsserts() as $fail){
			echo "<li>{$fail[0]}</li>";
		}
		echo "</ul></li>";
	}
	echo "</ul></p>";
			
}				
				?>
				<div class="summary">
					<?php echo $testCount; ?>/<?php echo $totalTestCount; ?> 
					test cases complete. <strong><?php echo $testFinished ?></strong> 
					passes, <strong><?php echo $failtest ?></strong> fails and <strong><?php echo $exceptions; ?></strong> exceptions.
				</div>
			</div>
		</div>
	</div>
</body>
</html>
Return current item: GnomePHP