Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
3
// CVS: $Id: bug-9213.phpt,v 1.1 2006/11/20 09:08:05 firman Exp $
4
?>
5
--TEST--
6
Bug #9213: Date_Calc doesn't like including Date.php
7
--FILE--
8
<?php
9
/**
10
 * Test for: Date_Calc
11
 * Parts tested: DATE_CALC_FORMAT constant
12
 */
13
 
14
require_once 'Date.php'; //Uh oh! I break things
15
require_once 'Date/Calc.php';
16
 
17
$calc = new Date_Calc();
18
print $calc->beginOfWeek(1, 6, 2006) . "\n";
19
print $calc->beginOfWeek(1, 6, 2006) . "\n";
20
print $calc->beginOfNextWeek(1, 6, 2006) . "\n";
21
print $calc->beginOfWeek() . "\n";
22
 
23
?>
24
--EXPECT--
25
20060529
26
20060529
27
20060605
28
(timestamp)
29
<?php
30
/*
31
 * Local variables:
32
 * mode: php
33
 * tab-width: 4
34
 * c-basic-offset: 4
35
 * c-hanging-comment-ender-p: nil
36
 * End:
37
 */
38
?>