File tree Expand file tree Collapse file tree 2 files changed +54
-2
lines changed Expand file tree Collapse file tree 2 files changed +54
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public function it_lowers_mixed_word()
21
21
}
22
22
23
23
/** @test */
24
- public function it_lowers_uppercase_word ()
24
+ public function it_lowers_uppercased_word ()
25
25
{
26
26
$ this ->assertEquals ('test ' , str_lower ('TEST ' ));
27
27
}
@@ -39,7 +39,7 @@ public function it_lowers_mixed_sentence()
39
39
}
40
40
41
41
/** @test */
42
- public function it_lowers_uppercase_sentence ()
42
+ public function it_lowers_uppercased_sentence ()
43
43
{
44
44
$ this ->assertEquals ('another test ' , str_lower ('ANOTHER TEST ' ));
45
45
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ class StrUpperTest extends TestCase
4
+ {
5
+ /** @test */
6
+ public function it_works_with_an_empty_string ()
7
+ {
8
+ $ this ->assertEquals ('' , str_upper ('' ));
9
+ }
10
+
11
+ /** @test */
12
+ public function it_uppers_capitalized_word ()
13
+ {
14
+ $ this ->assertEquals ('TEST ' , str_upper ('Test ' ));
15
+ }
16
+
17
+ /** @test */
18
+ public function it_uppers_mixed_word ()
19
+ {
20
+ $ this ->assertEquals ('TEST ' , str_upper ('TeSt ' ));
21
+ }
22
+
23
+ /** @test */
24
+ public function it_uppers_lowercased_word ()
25
+ {
26
+ $ this ->assertEquals ('TEST ' , str_upper ('test ' ));
27
+ }
28
+
29
+ /** @test */
30
+ public function it_uppers_capitalized_sentence ()
31
+ {
32
+ $ this ->assertEquals ('ANOTHER TEST ' , str_upper ('Another Test ' ));
33
+ }
34
+
35
+ /** @test */
36
+ public function it_uppers_mixed_sentence ()
37
+ {
38
+ $ this ->assertEquals ('ANOTHER TEST ' , str_upper ('AnoTHer TeST ' ));
39
+ }
40
+
41
+ /** @test */
42
+ public function it_uppers_lowercased_sentence ()
43
+ {
44
+ $ this ->assertEquals ('ANOTHER TEST ' , str_upper ('another test ' ));
45
+ }
46
+
47
+ /** @test */
48
+ public function it_uppers_mixed_sentence_with_special_chars ()
49
+ {
50
+ $ this ->assertEquals ('ANOTHER-TEST! ' , str_upper ('AnoTHer-TeST! ' ));
51
+ }
52
+ }
You can’t perform that action at this time.
0 commit comments