summaryrefslogtreecommitdiffhomepage
path: root/test/php
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-02-28 21:18:33 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-02-28 21:18:33 +0300
commit38ea191fbb91db000b1e68185359e612e7e47c54 (patch)
tree13f0e547e15b183362f4c94753a9bd6a2d303905 /test/php
parenta5dd0f8aa9b81921ff28c486a39fd46607dbdbd9 (diff)
downloadunit-38ea191fbb91db000b1e68185359e612e7e47c54.tar.gz
unit-38ea191fbb91db000b1e68185359e612e7e47c54.tar.bz2
Tests: fixed PHP "disable_functions" and "disable_classes" tests.
Diffstat (limited to 'test/php')
-rw-r--r--test/php/date_time/index.php3
-rw-r--r--test/php/highlight_file_exec/index.php4
-rw-r--r--test/php/time_exec/index.php4
3 files changed, 6 insertions, 5 deletions
diff --git a/test/php/date_time/index.php b/test/php/date_time/index.php
index 4e06fdf9..42992c3f 100644
--- a/test/php/date_time/index.php
+++ b/test/php/date_time/index.php
@@ -1,4 +1,5 @@
<?php
-$d = new DateTime('2011-01-01T15:03:01.012345Z');
+date_default_timezone_set('Europe/Moscow');
+$d = new DateTime('2011-01-01T15:03:01.012345');
echo $d->format('u');
?>
diff --git a/test/php/highlight_file_exec/index.php b/test/php/highlight_file_exec/index.php
deleted file mode 100644
index adcd5ed8..00000000
--- a/test/php/highlight_file_exec/index.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-highlight_file('index.php');
-exec('pwd');
-?>
diff --git a/test/php/time_exec/index.php b/test/php/time_exec/index.php
new file mode 100644
index 00000000..05d59d28
--- /dev/null
+++ b/test/php/time_exec/index.php
@@ -0,0 +1,4 @@
+<?php
+echo 'time: ' . time();
+echo 'exec: ' . exec('pwd');
+?>