PDO4You\PDO4YouTest::testAllTypesSelects PHP Method

testAllTypesSelects() public method

public testAllTypesSelects ( )
    public function testAllTypesSelects()
    {
        // SQL query
        $sql = 'SELECT * FROM users';
        // Executes the SQL and stores the result
        $result = test::select($sql);
        $this->assertEquals(1, self::getNumRows($result));
        // Executes the SQL and stores the result
        $result_num = test::selectNum($sql);
        $this->assertEquals(1, self::getNumRows($result_num));
        // Executes the SQL and stores the result
        $result_obj = test::selectObj($sql);
        $this->assertEquals(1, self::getNumRows($result_obj));
        // Executes the SQL and stores the result
        $result_all = test::selectAll($sql);
        $this->assertEquals(1, self::getNumRows($result_all));
    }