silverstripe-framework/tests/php/View/SSViewerTest/TestViewableData.php
2016-12-19 16:08:19 +13:00

28 lines
557 B
PHP

<?php
namespace SilverStripe\View\Tests\SSViewerTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\View\ViewableData;
class TestViewableData extends ViewableData implements TestOnly
{
private static $default_cast = 'Text';
private static $casting = array(
'TextValue' => 'Text',
'HTMLValue' => 'HTMLFragment'
);
public function methodWithOneArgument($arg1)
{
return "arg1:{$arg1}";
}
public function methodWithTwoArguments($arg1, $arg2)
{
return "arg1:{$arg1},arg2:{$arg2}";
}
}