2
class_exists ( 'UnitTestCase' ) or die ( 'Run from "all_tests.php"' );
3
require_once ( '../includes/functions.php' );
5
class TestOfFunctions extends UnitTestCase {
6
function testAddDuration () {
7
$this->assertEqual ( add_duration ( '123456', '50' ), '132400' );
8
$this->assertNotEqual ( add_duration ( '123456', '1490' ), '132400' );