summaryrefslogtreecommitdiffstats
path: root/tests/Fragments/ArrayFragmentTest.php
blob: f73ce54d6e5ae049e2f063a2406f9484f2d16850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace SqlParser\Tests\Fragments;

use SqlParser\Fragments\ArrayFragment;

use SqlParser\Tests\TestCase;

class ArrayFragmentTest extends TestCase
{

    public function testBuildRaw()
    {
        $fragment = new ArrayFragment(array('a', 'b'), array());
        $this->assertEquals('(a, b)', ArrayFragment::build($fragment));
    }

    public function testBuildValues()
    {
        $fragment = new ArrayFragment(array(), array('a', 'b'));
        $this->assertEquals('(a, b)', ArrayFragment::build($fragment));
    }
}