1 | <?php |
||
27 | class SubdomainRouteTest extends TestCase |
||
28 | { |
||
29 | |||
30 | private $SubdomainRoute; |
||
|
|||
31 | |||
32 | public function setUp() |
||
38 | |||
39 | public function tearDown() |
||
43 | |||
44 | /** |
||
45 | * @return void |
||
46 | */ |
||
47 | /* public function testParse() { |
||
48 | * |
||
49 | * $url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index']; |
||
50 | * $response = $this->SubdomainRoute->parse($url, ''); |
||
51 | * //assertSame |
||
52 | * $url = ['prefix' => 'users', 'Controller' => 'pages', 'action' => 'index']; |
||
53 | * $response = $this->SubdomainRoute->parse($url, ''); |
||
54 | * //assertwrong |
||
55 | * |
||
56 | * } |
||
57 | */ |
||
58 | /** |
||
59 | * @return void |
||
60 | */ |
||
61 | /* public function testMatch() { |
||
62 | * |
||
63 | * $url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index']; |
||
64 | * $response = $this->SubdomainRoute->match($url, ''); |
||
65 | * //assertSame |
||
66 | * $url = ['prefix' => 'users', 'Controller' => 'pages', 'action' => 'index']; |
||
67 | * $response = $this->SubdomainRoute->match($url, ''); |
||
68 | * //assertwrong |
||
69 | * |
||
70 | * } |
||
71 | */ |
||
72 | } |
||
73 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.