blob: 0c41f30d1116db82defb01f4260a182ea1bfddc0 [file] [log] [blame]
<?php
require_once dirname( __FILE__ ) . '/webdav_property_test.php';
class ezcWebdavGetContentLengthPropertyTest extends ezcWebdavWebdavPropertyTestCase
{
public static function suite()
{
return new PHPUnit_Framework_TestSuite( __CLASS__ );
}
protected function setUp()
{
$this->className = 'ezcWebdavGetContentLengthProperty';
$this->propertyName = 'getcontentlength';
$this->defaultValues = array(
'length' => null,
);
$this->workingValues = array(
'length' => array(
null,
"1234",
// 2 GB + 1b
"2147483649"
),
);
$this->failingValues = array(
'length' => array(
'foo',
23,
23.34,
true,
false,
new stdClass(),
),
);
}
}
?>