Snake case to camel case
This commit is contained in:
parent
8cbfaf3646
commit
c96a3bbd50
@ -55,7 +55,7 @@ class DispatcherTest extends AnimeClient_TestCase {
|
|||||||
|
|
||||||
public function dataRoute()
|
public function dataRoute()
|
||||||
{
|
{
|
||||||
$default_config = [
|
$defaultConfig = [
|
||||||
'routes' => [
|
'routes' => [
|
||||||
'routes' => [
|
'routes' => [
|
||||||
'login_form' => [
|
'login_form' => [
|
||||||
@ -94,25 +94,25 @@ class DispatcherTest extends AnimeClient_TestCase {
|
|||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'anime_default_routing_manga' => [
|
'anime_default_routing_manga' => [
|
||||||
'config' => $default_config,
|
'config' => $defaultConfig,
|
||||||
'controller' => 'manga',
|
'controller' => 'manga',
|
||||||
'host' => "localhost",
|
'host' => "localhost",
|
||||||
'uri' => "/manga/plan_to_read",
|
'uri' => "/manga/plan_to_read",
|
||||||
],
|
],
|
||||||
'manga_default_routing_anime' => [
|
'manga_default_routing_anime' => [
|
||||||
'config' => $default_config,
|
'config' => $defaultConfig,
|
||||||
'controller' => 'anime',
|
'controller' => 'anime',
|
||||||
'host' => "localhost",
|
'host' => "localhost",
|
||||||
'uri' => "/anime/watching",
|
'uri' => "/anime/watching",
|
||||||
],
|
],
|
||||||
'anime_default_routing_anime' => [
|
'anime_default_routing_anime' => [
|
||||||
'config' => $default_config,
|
'config' => $defaultConfig,
|
||||||
'controller' => 'anime',
|
'controller' => 'anime',
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'uri' => '/anime/watching',
|
'uri' => '/anime/watching',
|
||||||
],
|
],
|
||||||
'manga_default_routing_manga' => [
|
'manga_default_routing_manga' => [
|
||||||
'config' => $default_config,
|
'config' => $defaultConfig,
|
||||||
'controller' => 'manga',
|
'controller' => 'manga',
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'uri' => '/manga/plan_to_read'
|
'uri' => '/manga/plan_to_read'
|
||||||
|
@ -33,7 +33,7 @@ class RoutingBaseTest extends AnimeClient_TestCase {
|
|||||||
/**
|
/**
|
||||||
* @dataProvider dataSegments
|
* @dataProvider dataSegments
|
||||||
*/
|
*/
|
||||||
public function testSegments($requestUri, $path, $segments, $last_segment)
|
public function testSegments($requestUri, $path, $segments, $lastSegment)
|
||||||
{
|
{
|
||||||
$this->setSuperGlobals([
|
$this->setSuperGlobals([
|
||||||
'_SERVER' => [
|
'_SERVER' => [
|
||||||
@ -43,7 +43,7 @@ class RoutingBaseTest extends AnimeClient_TestCase {
|
|||||||
|
|
||||||
$this->assertEquals($path, $this->routingBase->path(), "Path is invalid");
|
$this->assertEquals($path, $this->routingBase->path(), "Path is invalid");
|
||||||
$this->assertEquals($segments, $this->routingBase->segments(), "Segments array is invalid");
|
$this->assertEquals($segments, $this->routingBase->segments(), "Segments array is invalid");
|
||||||
$this->assertEquals($last_segment, $this->routingBase->last_segment(), "Last segment is invalid");
|
$this->assertEquals($lastSegment, $this->routingBase->last_segment(), "Last segment is invalid");
|
||||||
|
|
||||||
foreach($segments as $i => $value)
|
foreach($segments as $i => $value)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user