Ejemplo n.º 1
0
 public function test_contest_time()
 {
     ob_start();
     e::the_contest_time(3661);
     $content = ob_get_contents();
     ob_end_clean();
     $this->assertSame('01:01:01', $content);
 }
Ejemplo n.º 2
0
    ?>
</td>
        <td><?php 
    e::the_contest_time($team->time);
    ?>
</td>
        <?php 
    for ($i = 0; $i < $contest->number_of_problems(); $i++) {
        $pdata = $team->problem_status($i);
        ?>
        <td>
            <?php 
        if ($pdata['accept_at']) {
            ?>
                <?php 
            e::the_contest_time($pdata['accept_at']);
            ?>
                <?php 
            if ($pdata['wa_count']) {
                ?>
                    (-<?php 
                echo $pdata['wa_count'];
                ?>
)
                <?php 
            }
            ?>
            <?php 
        } else {
            ?>
                <?php