ParagonIE\EasyDB\Tests\EasyStatementTest::testBasicAndOr PHP Method

testBasicAndOr() public method

public testBasicAndOr ( )
    public function testBasicAndOr()
    {
        $statement = EasyStatement::open()->with('id = ?', 1)->andWith('last_login > ?', 'today')->orWith('last_login IS NULL');
        $this->assertSql($statement, 'id = ? AND last_login > ? OR last_login IS NULL');
        $this->assertValues($statement, [1, 'today']);
    }