summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-10-19 17:40:34 +0000
committermurphy <murphy@rubychan.de>2009-10-19 17:40:34 +0000
commit0201cedb3a449510082a6fc084702d62391f2555 (patch)
treece4e99483d9dab92c3a4df33e4ee114edccea468 /test
parent87783c60d93caa75fc8cd117e5d9cb9be0a558f3 (diff)
downloadcoderay-0201cedb3a449510082a6fc084702d62391f2555.tar.gz
Updated PHP scanner: added a test, improved HTML/PHP detection, cleanup.
Diffstat (limited to 'test')
-rw-r--r--test/scanners/php/elvis.expected.raydebug1
-rw-r--r--test/scanners/php/elvis.in.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/scanners/php/elvis.expected.raydebug b/test/scanners/php/elvis.expected.raydebug
new file mode 100644
index 0000000..29e240c
--- /dev/null
+++ b/test/scanners/php/elvis.expected.raydebug
@@ -0,0 +1 @@
+local_variable($this)operator(?)local_variable($is)operator(+)ident(NO)operator(:)local_variable($label)
diff --git a/test/scanners/php/elvis.in.php b/test/scanners/php/elvis.in.php
new file mode 100644
index 0000000..aee46c0
--- /dev/null
+++ b/test/scanners/php/elvis.in.php
@@ -0,0 +1 @@
+$this?$is+NO:$label