summaryrefslogtreecommitdiff
path: root/testcode/test1.php
diff options
context:
space:
mode:
authordwheeler <dwheeler@d762cc98-fd17-0410-9a0d-d09172385bc5>2006-07-07 13:36:27 +0000
committerdwheeler <dwheeler@d762cc98-fd17-0410-9a0d-d09172385bc5>2006-07-07 13:36:27 +0000
commit05095851346f52c8e918176e8e2abdf0b21de5ec (patch)
tree8de964f5eea4c7d80faf34d5d744e215a053ba8f /testcode/test1.php
downloadsloccount-master.tar.gz
Initial import (sloccount 2.26)HEADmaster
git-svn-id: svn://svn.code.sf.net/p/sloccount/code/trunk@1 d762cc98-fd17-0410-9a0d-d09172385bc5
Diffstat (limited to 'testcode/test1.php')
-rw-r--r--testcode/test1.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/testcode/test1.php b/testcode/test1.php
new file mode 100644
index 0000000..9fd2510
--- /dev/null
+++ b/testcode/test1.php
@@ -0,0 +1,27 @@
+<?php
+
+ /**
+ * Test file for php_count, part of SLOCCount. This is a C-style comment.
+ */
+
+ // This is a C++-style comment.
+
+ # This is a shell-style comment.
+
+ # Here are 13 lines of code:
+
+ function get()
+ {
+ $total = 0;
+ $simplestring = 'hello';
+ $simplestring = '\\hello\'';
+ $funkystring = "hello";
+ $funkystring = "$hi\\\"";
+ $heretest <<< wiggle
+juggle
+ wiggle /* This doesn't end the string, so this isn't a C comment.
+wiggle;
+ return 0;
+ }
+
+?>