~ubuntu-branches/ubuntu/raring/webcalendar/raring

« back to all changes in this revision

Viewing changes to tests/add_duration_test.php

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-06-09 06:26:24 UTC
  • mfrom: (18.2.3 karmic)
  • Revision ID: james.westby@ubuntu.com-20090609062624-9n9xea2ftpipmg38
Tags: 1.2.0+dfsg-4
* debian/patches/06_send-reminder-paths.diff: Adjust patch to help
  translate.php to find the translation files under /etc/webcalendar.
  Thanks to Dale and Cheryl Schroeder for the help on debugging this
  (really, closes: #531312).
* debian/patches/16_no-blink-public-access-title.diff: New patch for
  avoiding the blinking title when changing the Public Access title in
  English-US.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class_exists ( 'UnitTestCase' ) or die ( 'Run from "all_tests.php"' );
 
3
require_once ( '../includes/functions.php' );
 
4
 
 
5
class TestOfFunctions extends UnitTestCase {
 
6
  function testAddDuration () {
 
7
    $this->assertEqual ( add_duration ( '123456', '50' ), '132400' );
 
8
    $this->assertNotEqual ( add_duration ( '123456', '1490' ), '132400' );
 
9
  }
 
10
}
 
11
 
 
12
?>