Ouzo\Db\WhereClause\SqlWhereClauseTest::shouldWrapSqlWithOrInParenthesis PHP Method

shouldWrapSqlWithOrInParenthesis() public method

    public function shouldWrapSqlWithOrInParenthesis()
    {
        // when
        $result = WhereClause::create('name = ? OR name = ?', array('bob', 'john'));
        // then
        $this->assertEquals(array('bob', 'john'), $result->getParameters());
        $this->assertEquals('(name = ? OR name = ?)', $result->toSql());
    }