for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kodus\Mail\Test\Unit;
use Kodus\Mail\MIMEWriter;
/**
* Overrides boundary name creation for testing
*/
class MockMIMEWriter extends MIMEWriter
{
private $index = 0;
protected function createMultipartBoundaryName(string $prefix): string
$this->index += 1;
$id = sha1($prefix . $this->index);
return "++++{$prefix}-{$id}++++";
}