summaryrefslogtreecommitdiffstats
path: root/tests/Components
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components')
-rw-r--r--tests/Components/FragmentTest.php19
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);
}
}