You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
865 B
52 lines
865 B
<?php namespace Tests\Support\View;
|
|
|
|
/**
|
|
* Class SampleClass
|
|
*
|
|
* This class is only used to provide a reference point
|
|
* during tests to make sure that things work as expected.
|
|
*/
|
|
|
|
class SampleClass {
|
|
|
|
public function index()
|
|
{
|
|
return 'Hello World';
|
|
}
|
|
|
|
public function hello()
|
|
{
|
|
return 'Hello';
|
|
}
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
public function echobox($params)
|
|
{
|
|
if (is_array($params))
|
|
{
|
|
$params = implode(',', $params);
|
|
}
|
|
|
|
return $params;
|
|
}
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
public static function staticEcho($params)
|
|
{
|
|
if (is_array($params))
|
|
{
|
|
$params = implode(',', $params);
|
|
}
|
|
|
|
return $params;
|
|
}
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
public function work($p1, $p2, $p4)
|
|
{
|
|
return 'Right on';
|
|
}
|
|
}
|
|
|