Skip to content

Commit

Permalink
The unit tests now set the timezone.
Browse files Browse the repository at this point in the history
Bug: 17830
  • Loading branch information
jparise committed Aug 29, 2010
1 parent 049965c commit 7748ce8
Show file tree
Hide file tree
Showing 22 changed files with 60 additions and 10 deletions.
6 changes: 2 additions & 4 deletions package.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
The Log package provides an abstracted logging framework. It includes output handlers for log files, databases, syslog, email, Firebug, and the console. It also provides composite and subject-observer logging mechanisms.
EOT;

$version = '1.12.2';
$version = '1.12.3';
$notes = <<<EOT
- Use PHP5-specific static method notation to avoid strict warnings. (Bug: 17509)
- Fixing some potential undefined backtrace references. (Bug: 17738)
- Adding `lineFormat` and `timeFormat` configuration variables to the syslog handler. (Request: 17753)
- The unit tests now set the timezone. (Bug 17830)
EOT;

$package = new PEAR_PackageFileManager2();
Expand Down
25 changes: 19 additions & 6 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
<email>jan@horde.org</email>
<active>yes</active>
</lead>
<date>2010-08-28</date>
<time>19:29:13</time>
<date>2010-08-29</date>
<time>14:48:56</time>
<version>
<release>1.12.2</release>
<release>1.12.3</release>
<api>1.0.0</api>
</version>
<stability>
Expand All @@ -37,9 +37,7 @@
</stability>
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
<notes>
- Use PHP5-specific static method notation to avoid strict warnings. (Bug: 17509)
- Fixing some potential undefined backtrace references. (Bug: 17738)
- Adding `lineFormat` and `timeFormat` configuration variables to the syslog handler. (Request: 17753)
- The unit tests now set the timezone. (Bug 17830)
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -141,6 +139,21 @@
</dependencies>
<phprelease />
<changelog>
<release>
<version>
<release>1.12.3</release>
<api>1.0.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2010-08-29</date>
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
<notes>
- The unit tests now set the timezone. (Bug 17830)
</notes>
</release>
<release>
<version>
<release>1.12.2</release>
Expand Down
2 changes: 2 additions & 0 deletions tests/backtrace.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Backtrace Vars
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/composite.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Composite Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/console.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Console Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/display.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Display Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/error_log.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Log: Error_Log Handler
--SKIPIF--
<?php if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') die("skip\n"); ?>
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/extract-zend2.0.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Log: _extractMessage() [Zend Engine 2.0]
if (version_compare(zend_version(), "2.0.0", "<") ||
version_compare(zend_version(), "2.2.0", ">=")) die('skip');
?>
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/extract-zend2.2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Log: _extractMessage() [Zend Engine 2.2]
--SKIPIF--
<?php if (version_compare(zend_version(), "2.2.0", "<")) die('skip'); ?>
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/file.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: File Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/firebug.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Firebug Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/format.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Line Format
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/levels.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Levels
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/masks.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Masks
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/null.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Null Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/priority.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Priorities
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/singleton.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Singleton
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/sql_ident.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ require_once 'PEAR/Registry.php';
$registry = &new PEAR_Registry();

if (!$registry->packageExists('DB')) die("skip\n");
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/sqlite.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Log: Sqlite Handler
--SKIPIF--
<?php if (!function_exists('sqlite_open')) die("skip\n"); ?>
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions tests/syslog.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Syslog Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down
1 change: 1 addition & 0 deletions tests/win-ob.phpt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
--TEST--
Log: Window Handler (Output Buffering)
--INI--
date.timezone=UTC
output_buffering=on
--FILE--
<?php
Expand Down
2 changes: 2 additions & 0 deletions tests/win.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Log: Window Handler
--INI--
date.timezone=UTC
--FILE--
<?php

Expand Down

0 comments on commit 7748ce8

Please sign in to comment.