@@ -25,72 +25,90 @@ public function testThirdTestShouldThrowAnError()
2525 $ this ->assertStringContainsString ('⚈ error ' , $ lines [6 ]);
2626 }
2727
28- public function testForthTestShouldBeSkipped ()
28+ public function testFourthTestShouldBeRisked ()
2929 {
3030 $ lines = $ this ->getOutput ();
3131
32- $ this ->assertStringContainsString ('→ skip ' , $ lines [7 ]);
32+ $ this ->assertStringContainsString ('⌽ risky ' , $ lines [7 ]);
3333 }
3434
35- public function testFifthTestShouldBeIncomplete ()
35+ public function testFifthTestShouldBeSkipped ()
3636 {
3737 $ lines = $ this ->getOutput ();
3838
39- $ this ->assertStringContainsString ('∅ incomplete ' , $ lines [8 ]);
39+ $ this ->assertStringContainsString ('→ skip ' , $ lines [8 ]);
40+ }
41+
42+ public function testSixthTestShouldBeIncomplete ()
43+ {
44+ $ lines = $ this ->getOutput ();
45+
46+ $ this ->assertStringContainsString ('∅ incomplete ' , $ lines [9 ]);
4047 }
4148
4249 public function testTestNamesCanBeTitleCased ()
4350 {
4451 $ lines = $ this ->getOutput ();
4552
46- $ this ->assertStringContainsString ('✓ should convert title case to lowercased words ' , $ lines [9 ]);
53+ $ this ->assertStringContainsString ('✓ should convert title case to lowercased words ' , $ lines [10 ]);
4754 }
4855
4956 public function testTestNameCanBeSnakeCased ()
5057 {
5158 $ lines = $ this ->getOutput ();
5259
53- $ this ->assertStringContainsString ('✓ should convert snake case to lowercased words ' , $ lines [10 ]);
60+ $ this ->assertStringContainsString ('✓ should convert snake case to lowercased words ' , $ lines [11 ]);
5461 }
5562
5663 public function testTestNameCanBeNonBreakingSpaced ()
5764 {
5865 $ lines = $ this ->getOutput ();
5966
60- $ this ->assertStringContainsString ('✓ should convert non breaking spaces to lowercased words ' , $ lines [11 ]);
67+ $ this ->assertStringContainsString ('✓ should convert non breaking spaces to lowercased words ' , $ lines [12 ]);
6168 }
6269
6370 public function testTestNameCanContainNumbers ()
6471 {
6572 $ lines = $ this ->getOutput ();
6673
67- $ this ->assertStringContainsString ('✓ can contain 1 or 99 numbers ' , $ lines [12 ]);
74+ $ this ->assertStringContainsString ('✓ can contain 1 or 99 numbers ' , $ lines [13 ]);
6875 }
6976
7077 public function testTestNameCanStartOrEndWithANumber ()
7178 {
7279 $ lines = $ this ->getOutput ();
7380
74- $ this ->assertStringContainsString ('✓ 123 can start or end with numbers 456 ' , $ lines [13 ]);
81+ $ this ->assertStringContainsString ('✓ 123 can start or end with numbers 456 ' , $ lines [14 ]);
7582 }
7683
7784 public function testTestNameCanContainCapitalizedWords ()
7885 {
7986 $ lines = $ this ->getOutput ();
8087
81- $ this ->assertStringContainsString ('✓ should preserve capitalized and partially capitalized words ' , $ lines [14 ]);
88+ $ this ->assertStringContainsString ('✓ should preserve capitalized and partially capitalized words ' , $ lines [15 ]);
8289 }
8390
8491 public function testItCanShowProgressWhileRunningTests ()
8592 {
8693 putenv ('PHPUNIT_PRETTY_PRINT_PROGRESS=true ' );
8794
88- $ lines = array_slice ($ this ->getOutput (), 4 , 11 );
95+ $ lines = array_slice ($ this ->getOutput (), 4 , 15 );
8996 $ count = count ($ lines );
9097
9198 foreach ($ lines as $ index => $ line ) {
92- $ this ->assertStringContainsString (vsprintf ('%s/%s ' , [$ index+ 1 , $ count ]), $ line );
99+ $ this ->assertStringContainsString (vsprintf ('%s/%s ' , [$ index + 1 , $ count ]), $ line );
93100 }
101+
102+ putenv ('PHPUNIT_PRETTY_PRINT_PROGRESS=false ' );
103+ }
104+
105+ public function testItShowsDatasetName ()
106+ {
107+ $ lines = $ this ->getOutput ();
108+
109+ $ this ->assertStringContainsString ('✓ with named datasets [ dataset1 ] ' , $ lines [16 ]);
110+ $ this ->assertStringContainsString ('✓ with named datasets [ DataSet2 ] ' , $ lines [17 ]);
111+ $ this ->assertStringContainsString ('✓ with named datasets [ data set 3 ] ' , $ lines [18 ]);
94112 }
95113
96114 private function getOutput (): array
0 commit comments