cvs: pear /Date/tests bug9213.phpt
| From: | Firman Wandayandi | Date: | Tue, 14 Nov 2006 04:27:18 +0000 |
| Subject: | cvs: pear /Date/tests bug9213.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-43070@lists.php.net to get a copy of this message | ||
firman Tue Nov 14 04:27:18 2006 UTC
Added files:
/pear/Date/tests bug9213.phpt
Log:
Test file for bug #9213
http://cvs.php.net/viewvc.cgi/pear/Date/tests/bug9213.phpt?view=markup&rev=1.1
Index: pear/Date/tests/bug9213.phpt
+++ pear/Date/tests/bug9213.phpt
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
// CVS: $Id: bug9213.phpt,v 1.1 2006/11/14 04:27:18 firman Exp $
?>
--TEST--
Bug #9213: Date_Calc doesn't like including Date.php
--FILE--
<?php
//
// Test for: Date_Calc
// Parts tested: DATE_CALC_FORMAT constant
//
require_once 'Date.php'; //Uh oh! I break things
require_once 'Date/Calc.php';
$calc = new Date_Calc();
print $calc->beginOfWeek(1, 6, 2006) . "\n";
print $calc->beginOfWeek(1, 6, 2006) . "\n";
print $calc->beginOfNextWeek(1, 6, 2006) . "\n";
print $calc->beginOfWeek() . "\n";
?>
--EXPECT--
20060529
20060529
20060605
(timestamp)
<?php
/*
* Local variables:
* mode: php
* tab-width: 4
* c-basic-offset: 4
* c-hanging-comment-ender-p: nil
* End:
*/
?>