for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SRF\Tests\vCard;
use SRF\vCard\Email;
/**
* @covers \SRF\vCard\Email
* @group semantic-result-formats
*
* @license GNU GPL v2+
* @since 3.0
* @author mwjames
*/
class EmailTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$this->assertInstanceOf(
Email::class,
new Email( '', '' )
);
}
public function testText() {
$instance = new Email( '', '[email protected]' );
$this->assertSame(
"EMAIL;TYPE=INTERNET:[email protected]\r\n",
$instance->text()