Skip to content

Commit 872e481

Browse files
committed
updated tests for path and namespace changes
1 parent a924287 commit 872e481

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

src/SQLParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace iamcal;
4+
35
class SQLParser{
46

57
#

tests/01_lex.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
}

tests/02_collapse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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

tests/04_table_props.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

tests/10_full.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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();

0 commit comments

Comments
 (0)