PHAN: Add tideways stub
authoraddshore <addshorewiki@gmail.com>
Mon, 23 Jan 2017 17:36:10 +0000 (18:36 +0100)
committerHashar <hashar@free.fr>
Mon, 30 Jan 2017 16:25:59 +0000 (16:25 +0000)
Used in Xhprof

Change-Id: I9f208bbaa0799d194dbef61cad851995020a5d17

tests/phan/config.php
tests/phan/stubs/tideways.php [new file with mode: 0644]

index 39b2fa1..c561f81 100644 (file)
@@ -37,6 +37,7 @@ return [
        'file_list' => array_merge(
                function_exists( 'register_postsend_function' ) ? [] : [ 'tests/phan/stubs/hhvm.php' ],
                function_exists( 'wikidiff2_do_diff' ) ? [] : [ 'tests/phan/stubs/wikidiff.php' ],
+               function_exists( 'tideways_enable' ) ? [] : [ 'tests/phan/stubs/tideways.php' ],
                class_exists( PEAR::class ) ? [] : [ 'tests/phan/stubs/mail.php' ],
                class_exists( Memcached::class ) ? [] : [ 'tests/phan/stubs/memcached.php' ],
                [
diff --git a/tests/phan/stubs/tideways.php b/tests/phan/stubs/tideways.php
new file mode 100644 (file)
index 0000000..1372219
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * Minimal set of classes necessary for Xhprof using tideways
+ * @codingStandardsIgnoreFile
+ */
+
+function tideways_enable(){
+}
+
+function tideways_disable(){
+}