radarrplexorganizrnginxsonarrdashboardserverhomepagesabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpc
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
891 B
38 lines
891 B
<?php
|
|
|
|
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
|
|
|
|
/**
|
|
* A base test case with some custom expectations.
|
|
*
|
|
* @author Rouven Weßling
|
|
*/
|
|
class SwiftMailerTestCase extends \PHPUnit\Framework\TestCase
|
|
{
|
|
use MockeryPHPUnitIntegration;
|
|
|
|
public static function regExp($pattern)
|
|
{
|
|
if (!is_string($pattern)) {
|
|
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
|
|
}
|
|
|
|
return new \PHPUnit\Framework\Constraint\RegularExpression($pattern);
|
|
}
|
|
|
|
public function assertIdenticalBinary($expected, $actual, $message = '')
|
|
{
|
|
$constraint = new IdenticalBinaryConstraint($expected);
|
|
self::assertThat($actual, $constraint, $message);
|
|
}
|
|
|
|
protected function tearDown()
|
|
{
|
|
\Mockery::close();
|
|
}
|
|
|
|
protected function getMockery($class)
|
|
{
|
|
return \Mockery::mock($class);
|
|
}
|
|
}
|
|
|