From 71610b241c8cefe31f62b574c51ab05474727840 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 15 Feb 2017 16:11:52 -0500 Subject: [PATCH] Snake case to camel case --- tests/DispatcherTest.php | 10 +++++----- tests/RoutingBaseTest.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/DispatcherTest.php b/tests/DispatcherTest.php index 63f85465..54884117 100644 --- a/tests/DispatcherTest.php +++ b/tests/DispatcherTest.php @@ -55,7 +55,7 @@ class DispatcherTest extends AnimeClient_TestCase { public function dataRoute() { - $default_config = [ + $defaultConfig = [ 'routes' => [ 'routes' => [ 'login_form' => [ @@ -94,25 +94,25 @@ class DispatcherTest extends AnimeClient_TestCase { $data = [ 'anime_default_routing_manga' => [ - 'config' => $default_config, + 'config' => $defaultConfig, 'controller' => 'manga', 'host' => "localhost", 'uri' => "/manga/plan_to_read", ], 'manga_default_routing_anime' => [ - 'config' => $default_config, + 'config' => $defaultConfig, 'controller' => 'anime', 'host' => "localhost", 'uri' => "/anime/watching", ], 'anime_default_routing_anime' => [ - 'config' => $default_config, + 'config' => $defaultConfig, 'controller' => 'anime', 'host' => 'localhost', 'uri' => '/anime/watching', ], 'manga_default_routing_manga' => [ - 'config' => $default_config, + 'config' => $defaultConfig, 'controller' => 'manga', 'host' => 'localhost', 'uri' => '/manga/plan_to_read' diff --git a/tests/RoutingBaseTest.php b/tests/RoutingBaseTest.php index f514972a..77ed9965 100644 --- a/tests/RoutingBaseTest.php +++ b/tests/RoutingBaseTest.php @@ -33,7 +33,7 @@ class RoutingBaseTest extends AnimeClient_TestCase { /** * @dataProvider dataSegments */ - public function testSegments($requestUri, $path, $segments, $last_segment) + public function testSegments($requestUri, $path, $segments, $lastSegment) { $this->setSuperGlobals([ '_SERVER' => [ @@ -43,7 +43,7 @@ class RoutingBaseTest extends AnimeClient_TestCase { $this->assertEquals($path, $this->routingBase->path(), "Path 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) {