silverstripe-subsites/tests/php/SiteTreeSubsitesTest/TestErrorPage.php

21 lines
460 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\Subsites\Tests\SiteTreeSubsitesTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ErrorPage\ErrorPage;
class TestErrorPage extends ErrorPage implements TestOnly
{
/**
* Helper method to call protected members
*
* @param int $statusCode
* @return string
*/
public static function get_error_filename_spy($statusCode)
{
2024-06-05 07:26:56 +02:00
return TestErrorPage::get_error_filename($statusCode);
}
}