blob: 2dbeb8ebce9b60f2532a09c6cec9be4e6f1447d6 [file] [log] [blame]
<?php
require_once dirname( __FILE__ ) . '/webdav_property_test.php';
class ezcWebdavResourceTypePropertyTest extends ezcWebdavWebdavPropertyTestCase
{
public static function suite()
{
return new PHPUnit_Framework_TestSuite( __CLASS__ );
}
protected function setUp()
{
$this->className = 'ezcWebdavResourceTypeProperty';
$this->propertyName = 'resourcetype';
$this->defaultValues = array(
'type' => null,
);
$this->workingValues = array(
'type' => array(
null,
ezcWebdavResourceTypeProperty::TYPE_COLLECTION,
ezcWebdavResourceTypeProperty::TYPE_RESSOURCE,
),
);
$this->failingValues = array(
'type' => array(
23,
23.34,
'',
'foo',
true,
false,
array( 23, 42 ),
new stdClass(),
),
);
}
}
?>