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