I have Contact class. This class call select method of DB class. it like this:
public class Contact
{
$db= new DB;
$data=$db->select();
return (['data'=>$data']);
}
How can i mock data of select method in my test case with mockery of phpunit?!Please help!
Aucun commentaire:
Enregistrer un commentaire