Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
restore php 5.3 language level
Browse files Browse the repository at this point in the history
Conflicts:
	test/AddressTest.php
  • Loading branch information
glensc authored and weierophinney committed Jul 13, 2017
1 parent e5eb4ea commit 0fead56
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions test/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,23 @@ public function invalidSenderDataProvider()
array("foo@bar", "\r\nevilBody"),
);
}

/**
* @dataProvider validSenderDataProvider
* @param string $email
* @param null|string $name
*/
public function testSetAddressValidAddressObject($email, $name)
{
$address = new Address($email, $name);
$this->assertInstanceOf('\Zend\Mail\Address', $address);
}

public function validSenderDataProvider()
{
return array(
// Description => [sender address, sender name],
'german IDN' => array('öäü@ä-umlaut.de', null),
);
}
}
2 changes: 1 addition & 1 deletion test/Transport/SendmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function testCodeInjectionInFromHeader()
$message->addTo('hacker@localhost', 'Name of recipient');
$message->setSubject('TestSubject');

$this->setExpectedException(RuntimeException::class);
$this->setExpectedException('Zend\Mail\Transport\Exception\RuntimeException');
$this->transport->send($message);
}

Expand Down

0 comments on commit 0fead56

Please sign in to comment.