friendica-addons/dav/sabre-vobject/tests/Sabre/VObject/ParameterTest.php

24 lines
483 B
PHP
Raw Normal View History

2012-06-03 14:19:28 -04:00
<?php
namespace Sabre\VObject;
class ParameterTest extends \PHPUnit_Framework_TestCase {
2012-06-03 14:19:28 -04:00
function testSetup() {
$param = new Parameter('name','value');
2012-06-03 14:19:28 -04:00
$this->assertEquals('NAME',$param->name);
$this->assertEquals('value',$param->value);
}
function testCastToString() {
$param = new Parameter('name','value');
2012-06-03 14:19:28 -04:00
$this->assertEquals('value',$param->__toString());
$this->assertEquals('value',(string)$param);
}
}