File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ namespace iamcal ;
4+
35class SQLParser{
46
57 #
Original file line number Diff line number Diff line change 11<?php
22 include (dirname (__FILE__ ).'/testmore.php ' );
3- include (dirname (__FILE__ ).'/../lib_sql_parser .php ' );
3+ include (dirname (__FILE__ ).'/../src/SQLParser .php ' );
44
55 function lex_test ($ str , $ tokens ){
6- $ obj = new SQLParser ();
6+ $ obj = new iamcal \ SQLParser ();
77
88 is_deeply ($ obj ->lex ($ str ), $ tokens );
99 }
Original file line number Diff line number Diff line change 11<?php
22 include (dirname (__FILE__ ).'/testmore.php ' );
3- include (dirname (__FILE__ ).'/../lib_sql_parser .php ' );
3+ include (dirname (__FILE__ ).'/../src/SQLParser .php ' );
44
55 plan (2 );
66
77
88 function collapse_test ($ in , $ out ){
9- $ obj = new SQLParser ();
9+ $ obj = new iamcal \ SQLParser ();
1010 is_deeply ($ obj ->lex ($ in ), $ out );
1111 }
1212
Original file line number Diff line number Diff line change 11<?php
22 include (dirname (__FILE__ ).'/testmore.php ' );
3- include (dirname (__FILE__ ).'/../lib_sql_parser .php ' );
3+ include (dirname (__FILE__ ).'/../src/SQLParser .php ' );
44
55 function table_props_test ($ tokens , $ props_expect ){
66
7- $ obj = new SQLParser ();
7+ $ obj = new iamcal \ SQLParser ();
88 $ i = 0 ;
99 $ props = $ obj ->parse_table_props ($ tokens , $ i );
1010
Original file line number Diff line number Diff line change 11<?php
22 include (dirname (__FILE__ ).'/testmore.php ' );
3- include (dirname (__FILE__ ).'/../lib_sql_parser .php ' );
3+ include (dirname (__FILE__ ).'/../src/SQLParser .php ' );
44
55 function full_test ($ sql , $ expected ){
66
7- $ obj = new SQLParser ();
7+ $ obj = new iamcal \ SQLParser ();
88 $ obj ->parse ($ sql );
99
1010 $ lines = array ();
You can’t perform that action at this time.
0 commit comments