Location: PHPKode > scripts > WebCalendar > WebCalendar-1.2.4/tests/add_duration_test.php
<?php
class_exists ( 'UnitTestCase' ) or die ( 'Run from "all_tests.php"' );
require_once ( '../includes/functions.php' );

class TestOfFunctions extends UnitTestCase {
  function testAddDuration () {
    $this->assertEqual ( add_duration ( '123456', '50' ), '132400' );
    $this->assertNotEqual ( add_duration ( '123456', '1490' ), '132400' );
  }
}

?>
Return current item: WebCalendar