aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/type_foo.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-09-07 22:52:20 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-09-09 08:29:12 +0200
commite60c8a5a8bfa1aa500c096ea90cd32fda9465f9a (patch)
tree02f64e263e49e0dc61a267e45cf66143e4d6070a /tests/files/type_foo.php
parent00e5ff9e2e9c0dd7325f33a22888d6888af4b197 (diff)
downloadforums-e60c8a5a8bfa1aa500c096ea90cd32fda9465f9a.tar
forums-e60c8a5a8bfa1aa500c096ea90cd32fda9465f9a.tar.gz
forums-e60c8a5a8bfa1aa500c096ea90cd32fda9465f9a.tar.bz2
forums-e60c8a5a8bfa1aa500c096ea90cd32fda9465f9a.tar.xz
forums-e60c8a5a8bfa1aa500c096ea90cd32fda9465f9a.zip
[ticket/13904] Improve code coverage
PHPBB3-13904
Diffstat (limited to 'tests/files/type_foo.php')
-rw-r--r--tests/files/type_foo.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/files/type_foo.php b/tests/files/type_foo.php
new file mode 100644
index 0000000000..20eddfcbc4
--- /dev/null
+++ b/tests/files/type_foo.php
@@ -0,0 +1,31 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+namespace phpbb\files\types;
+
+class foo extends \phpbb\files\types\remote
+{
+ static public $tempnam_path;
+}
+
+function tempnam($one, $two)
+{
+ if (empty(foo::$tempnam_path))
+ {
+ return \tempnam($one, $two);
+ }
+ else
+ {
+ return foo::$tempnam_path;
+ }
+}