mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
PHPUnit > execute tests in random order
This commit is contained in:
@@ -60,6 +60,15 @@ class UriTest extends BaseTestCase
|
||||
*/
|
||||
public function testReplenishProtocol($expected, $url, $protocol = '')
|
||||
{
|
||||
/*
|
||||
* Required to get protocol when it's not provided and to void test failure:
|
||||
*
|
||||
* Failed asserting that two strings are identical.
|
||||
* Expected :'://test'
|
||||
* Actual :'http://test'
|
||||
*/
|
||||
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
|
||||
|
||||
self::assertSame($expected, Uri::replenishProtocol($url, $protocol));
|
||||
}
|
||||
|
||||
@@ -251,7 +260,7 @@ class UriTest extends BaseTestCase
|
||||
public function provideUrlToReplenishProtocol()
|
||||
{
|
||||
yield[
|
||||
'://test',
|
||||
'http://test',
|
||||
'test',
|
||||
'',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user