PHP Classes

File: vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php

Recommend this page to a friend!
  Classes of Renato Lucena   PHP Pokemon Script   vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php   Download  
File: vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 6 years ago
Size: 790 bytes
 

Contents

Class file image Download
<?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);
    }
}