echo Eight::lang('unit_test.no_tests_found');
        ?>
</td>
			</tr>

		<?php 
    } else {
        foreach ($methods as $method => $result) {
            // Hide passed tests from report
            if ($result === YES and $hide_passed === YES) {
                continue;
            }
            ?>

				<tr class="<?php 
            echo str::alternate('', 'k-altrow');
            ?>
">
					<td class="k-name"><?php 
            echo $method;
            ?>
</td>

					<?php 
            if ($result === YES) {
                ?>

						<td class="k-passed"><strong><?php 
                echo Eight::lang('unit_test.passed');
                ?>
</strong></td>
Esempio n. 2
0
 /**
  * Logs data.
  *
  * @return  void
  */
 public function logs()
 {
     $logs = Eight::log_get(TRUE);
     if (arr::e($logs)) {
         return;
     }
     if (!($table = $this->table('logs'))) {
         return;
     }
     $table->add_column('ep-name');
     $table->add_column('ep-column ep-data');
     $table->add_column('ep-column ep-data');
     $table->add_row(array('Log', 'Level', 'Date'), 'ep-title', '');
     str::alternate();
     foreach ($logs as $log) {
         $data = array($name, $value);
         $class = str::alternate('', 'ep-altrow');
         $table->add_row(array_reverse($log), $class);
     }
 }