public function cannot_create_temp_file()
{
global $mockTempnam;
$mockTempnam = true;
$tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . microtime(true);
$spoolDir = $tmpDir . DIRECTORY_SEPARATOR . 'spool';
$props = array('tmpDir' => $tmpDir, 'spoolDir' => $spoolDir);
$call = new \PAGI\CallSpool\CallFile(new \PAGI\DialDescriptor\SIPDialDescriptor('target', 'provider'));
$spool = \PAGI\CallSpool\Impl\CallSpoolImpl::getInstance($props);
$spool->spool($call);
}