diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
commit | 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 (patch) | |
tree | 4d541098d751d5a9acf8c12f6fb9f308ace066ac /vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php | |
download | flyspray-8df3db566a3a937b45ebf11adb90d265e6f5e2d4.tar.xz |
initial checking of customized version 1.0rc9
Diffstat (limited to 'vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php')
-rw-r--r-- | vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php b/vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php new file mode 100644 index 0000000..f0e2736 --- /dev/null +++ b/vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php @@ -0,0 +1,34 @@ +<?php + +/** + * A base test case with some custom expectations. + * + * @author Rouven Weßling + */ +class SwiftMailerTestCase extends \PHPUnit_Framework_TestCase +{ + public static function regExp($pattern) + { + if (!is_string($pattern)) { + throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string'); + } + + return new PHPUnit_Framework_Constraint_PCREMatch($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); + } +} |