PHPUnit – test query func

I have part of the php code I am writing test for:

$_image_file = db_get_field('SELECT image_path FROM ?:images WHERE image_id = ?i', $image_id);

When duping it, it return: image_1.jpg

And I want to write it in PHPUnit test:

FunctionMocker::replace('db_get_field', function () {
        return FnImagesFunctionsTest::$functions->db_get_field();


Which is okay, but I want to call it with sql call as I have multiple db_get_field methods with different sql queries.

So, like ->withArgs('SELCET ...', $image_id = 190)

Can someone please help, I am new with PHPUnit tests..