Dshafik\MySQL\Tests\MySqlShimTest::test_mysql_fetch_no_rows PHP Method

test_mysql_fetch_no_rows() public method

public test_mysql_fetch_no_rows ( $function )
    public function test_mysql_fetch_no_rows($function)
    {
        $this->getConnection("shim_test");
        $result = mysql_query("SELECT * FROM testing WHERE one = 'fail'");
        $this->assertResult($result);
        $this->assertEquals(0, mysql_num_rows($result));
        $this->assertFalse($function($result));
    }
MySqlShimTest