diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-07-23 00:14:58 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-07-23 00:14:58 +0300 |
commit | 367981588c47f5dc2f3c8cffa9b0038f5d807e65 (patch) | |
tree | b8d4feb3748021a2cb74d3a05d6e58835762b728 /tests/Components | |
parent | e1b91ed012ca2701ec0c129c44906bf4d282e99c (diff) | |
download | sql-parser-367981588c47f5dc2f3c8cffa9b0038f5d807e65.zip sql-parser-367981588c47f5dc2f3c8cffa9b0038f5d807e65.tar.gz sql-parser-367981588c47f5dc2f3c8cffa9b0038f5d807e65.tar.bz2 |
Implemented support for transactions.
Diffstat (limited to 'tests/Components')
-rw-r--r-- | tests/Components/FragmentTest.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/Components/FragmentTest.php b/tests/Components/FragmentTest.php index 64cc8b1..f8b27fa 100644 --- a/tests/Components/FragmentTest.php +++ b/tests/Components/FragmentTest.php @@ -5,16 +5,27 @@ namespace SqlParser\Tests\Parser; use SqlParser\Component; use SqlParser\Parser; use SqlParser\TokensList; -use SqlParser\Components\ArrayObj; use SqlParser\Tests\TestCase; class ComponentTest extends TestCase { - public function testDummy() + /** + * @expectedException \Exception + * @expectedExceptionMessage Not implemented yet. + */ + public function testParse() { - $this->assertEquals(null, Component::parse(new Parser(), new TokensList())); - $this->assertEquals(null, Component::build(new ArrayObj())); + Component::parse(new Parser(), new TokensList()); + } + + /** + * @expectedException \Exception + * @expectedExceptionMessage Not implemented yet. + */ + public function testBuild() + { + Component::build(null); } } |