Skip to content

Commit

Permalink
[+]: try to fix test v1
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Sep 17, 2016
1 parent 98953e5 commit b67223f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/unit/Swift/Mime/IdGeneratorTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php

use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\RFCValidation;

class Swift_Mime_IdGeneratorTest extends \PHPUnit_Framework_TestCase
{
protected $emailValidator;
Expand All @@ -20,10 +17,10 @@ public function testIdGeneratorSetRightId()
public function testIdGenerateId()
{
$idGenerator = new Swift_Mime_IdGenerator('example.net');
$emailValidator = new EmailValidator();
$emailValidator = new Swift_EmailValidatorBridge();

$id = $idGenerator->generateId();
$this->assertTrue($emailValidator->isValid($id, new RFCValidation()));
$this->assertTrue($emailValidator->isValid($id));
$this->assertEquals(1, preg_match('/^.{32}@example.net$/', $id));

$anotherId = $idGenerator->generateId();
Expand Down

0 comments on commit b67223f

Please sign in to comment.