for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kodus\Mail\Test\Unit;
use InvalidArgumentException;
use Kodus\Mail\Address;
use RuntimeException;
use UnitTester;
class AddressCest
{
public function rejectInvalidEmailAddress(UnitTester $I)
$I->assertException(
InvalidArgumentException::class,
function () {
new Address("foo@bar");
}
);
public function preventNameInjection(UnitTester $I)
RuntimeException::class,
new Address("[email protected]", "Foo\nBar");