mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-23 05:43:42 +00:00
23 lines
483 B
PHP
23 lines
483 B
PHP
<?php
|
|
|
|
namespace Sabre\VObject;
|
|
|
|
class ParameterTest extends \PHPUnit_Framework_TestCase {
|
|
|
|
function testSetup() {
|
|
|
|
$param = new Parameter('name','value');
|
|
$this->assertEquals('NAME',$param->name);
|
|
$this->assertEquals('value',$param->value);
|
|
|
|
}
|
|
|
|
function testCastToString() {
|
|
|
|
$param = new Parameter('name','value');
|
|
$this->assertEquals('value',$param->__toString());
|
|
$this->assertEquals('value',(string)$param);
|
|
|
|
}
|
|
|
|
}
|