first of all, I am almost completely new to programming and completely new to codeception and PHP.
I'm wondering if anyone could help me with how I use codeception to send a file using the sendPost method in the REST module http://codeception.com/docs/modules/REST#sendPOST .
The help file describes sending it via an array but honestly can't figure it out.
The most sensible way I can come up with is the following
$I->sendPost(array("filename"))
Like I said, completely new at this.
The file is located in the directory that Codeception has been installed hence why I didn't think I needed to specify it's location. I'm also aware of how to send a Post without an attached file, just not one with an attached file.
I hope that's enough information.
Apologies if it isn't.