WP File Manager
Current Path:
/
home
/
itutorethiopia
/
public_html
/
vendor
/
swiftmailer
/
swiftmailer
/
tests
/
Name
Action
..
IdenticalBinaryConstraint.php
Edit
StreamCollector.php
Edit
SwiftMailerSmokeTestCase.php
Edit
SwiftMailerTestCase.php
Edit
_samples
acceptance
acceptance.conf.php.default
Edit
bootstrap.php
Edit
bug
fixtures
smoke
smoke.conf.php.default
Edit
unit
Editing: SwiftMailerTestCase.php
<?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); } }