Skip to content

Commit 25baed2

Browse files
committed
glayzzle#36 add tests on token
1 parent a75668f commit 25baed2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/token/texts.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3+
$a = b'a';
34
$colors = array("red", "white", "blue");
4-
echo "\colors contains >$colors<\n";
5-
echo "\colors[1] contains >$colors[1]<\n";
5+
echo b"\colors contains >$colors<\n";
6+
echo B"\colors[1] contains >$colors[1]<\n";
67
echo "\colors[1] contains >$colors [1]<\n"; // whitespace permitted, but semantics change
78
//echo "\colors[1] contains >$colors[ 1]<\n"; // whitespace not permitted
89
//echo "\colors[1] contains >$colors[1 ]<\n"; // whitespace not permitted

0 commit comments

Comments
 (0)