blob: d51b7956771ef4bbb7676e6f3e74ff202c37d145 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
class TrailsTest extends \Codeception\Test\Unit
{
/**
* @covers Trails\Inflector::camelize
*/
public function testInflectorCamelize(): void
{
$this->assertEquals(
'Path_SubPath_UnderscoreController',
Trails\Inflector::camelize('path/sub_path/underscore_controller')
);
}
/**
* @covers Trails\Inflector::underscore
*/
public function testInflectorUnderscore(): void
{
$this->assertEquals(
'path/sub_path/underscore_controller',
Trails\Inflector::underscore('Path_SubPath_UnderscoreController')
);
}
}
|