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