FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpfui/tests/TextHelperTest.php at master · phpfui/phpfui · GitHub
phpfui
/
phpfui
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
7
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpfui
/
tests
/
TextHelperTest.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 759 Bytes
Breadcrumbs
phpfui
/
tests
/
TextHelperTest.php
Copy path
File metadata and controls
18 lines (16 loc) · 759 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
use
PHPFUI
\
TextHelper
;
class
TextHelperTest
extends
\
PHPUnit
\
Framework
\TestCase
{
public
function
testCapitalSplit
() :
void
{
$
this
->
assertEquals
(
'
SQL
'
, TextHelper::
capitalSplit
(
'
SQL
'
));
$
this
->
assertEquals
(
'
My SQL
'
, TextHelper::
capitalSplit
(
'
MySQL
'
));
$
this
->
assertEquals
(
'
My Class Name
'
, TextHelper::
capitalSplit
(
'
MyClassName
'
));
$
this
->
assertEquals
(
'
My Method Name
'
, TextHelper::
capitalSplit
(
'
myMethodName
'
));
$
this
->
assertEquals
(
'
One
'
, TextHelper::
capitalSplit
(
'
one
'
));
$
this
->
assertEquals
(
'
Two One SQL
'
, TextHelper::
capitalSplit
(
'
twoOneSQL
'
));
$
this
->
assertEquals
(
'
Two One SQL Info
'
, TextHelper::
capitalSplit
(
'
twoOneSQLInfo
'
));
$
this
->
assertEquals
(
'
SQL Two One SQL Info
'
, TextHelper::
capitalSplit
(
'
SQLTwoOneSQLInfo
'
));
}
}
Back
|
FazBrowse Home
|
New Git URL