We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf8728 commit 482601cCopy full SHA for 482601c
1 file changed
tests/OddsTest.php
@@ -0,0 +1,19 @@
1
+<?php
2
+ use PHPUnit\Framework\TestCase;
3
+
4
+ final class OddsTest extends TestCase{
5
6
+ # tests for odds and ends
7
8
+ function testSingleTable(){
9
10
+ $obj = new iamcal\SQLParser();
11
12
+ $obj->parse("CREATE TABLE foo; CREATE TABLE bar");
13
+ $this->assertEquals(count($obj->tables), 2);
14
15
+ $obj->find_single_table = true;
16
17
+ $this->assertEquals(count($obj->tables), 1);
18
+ }
19
0 commit comments