ParagonIE\EasyDB\Tests\Is1DArrayTest::testIs1DArray PHP Method

testIs1DArray() public method

public testIs1DArray ( $dsn, null $username = null, null $password = null, array $options = [] )
$dsn
$username null
$password null
$options array
    public function testIs1DArray($dsn, $username = null, $password = null, $options = [])
    {
        $db = Factory::create($dsn, $username, $password, $options);
        $this->assertTrue($db->is1DArray([]));
        $this->assertFalse($db->is1DArray([[]]));
        $this->assertFalse($db->is1DArray([[], []]));
        $this->assertTrue($db->is1DArray([1]));
        $this->assertFalse($db->is1DArray([[1]]));
        $this->assertFalse($db->is1DArray([[1], [2]]));
    }