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

test_mysql_function_invalid_result() public method

public test_mysql_function_invalid_result ( $function, $error, $args, $skipHHVM = false )
    public function test_mysql_function_invalid_result($function, $error, $args, $skipHHVM = false)
    {
        $this->skipForHHVM($skipHHVM);
        $this->expectException(\PHPUnit_Framework_Error_Warning::class);
        $this->expectExceptionMessageRegExp('@' . $error . '@');
        if ($args !== []) {
            $function(null, ...$args);
        }
        $function(null);
    }
MySqlShimTest