File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -178,14 +178,12 @@ public function testDirname()
178
178
{
179
179
$ this ->assertSame ('/framework/tests ' , (string ) $ this ->stringable ('/framework/tests/Support ' )->dirname ());
180
180
$ this ->assertSame ('/framework ' , (string ) $ this ->stringable ('/framework/tests/Support ' )->dirname (2 ));
181
+ $ this ->assertSame ('. ' , (string ) $ this ->stringable ('framework ' )->dirname ());
181
182
182
- $ this ->assertSame ('/ ' , (string ) $ this ->stringable ('/framework/ ' )->dirname ());
183
-
184
- $ this ->assertSame ('/ ' , (string ) $ this ->stringable ('/ ' )->dirname ());
185
183
$ this ->assertSame ('. ' , (string ) $ this ->stringable ('. ' )->dirname ());
186
184
187
- // without slash
188
- $ this ->assertSame (' . ' , (string ) $ this ->stringable ('framework ' )->dirname ());
185
+ $ this -> assertSame ( DIRECTORY_SEPARATOR , ( string ) $ this -> stringable ( ' /framework/ ' )-> dirname ());
186
+ $ this ->assertSame (DIRECTORY_SEPARATOR , (string ) $ this ->stringable ('/ ' )->dirname ());
189
187
}
190
188
191
189
public function testUcsplitOnStringable ()
You can’t perform that action at this time.
0 commit comments