-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them
Description
The following test fails on develop and 4.4.
Failed asserting that two strings are identical.
Expected :'http://example.com/foo/bar'
Actual :'http://example.com'
<?php
namespace CodeIgniter;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\URI;
use CodeIgniter\HTTP\UserAgent;
use CodeIgniter\Test\CIUnitTestCase;
use Config\App;
final class TestTest extends CIUnitTestCase
{
public function test()
{
$appConfig = new App();
$request = new IncomingRequest(
$appConfig,
new URI($appConfig->baseURL . 'foo/bar'),
null,
new UserAgent()
);
$this->assertSame(
'http://example.com/foo/bar',
(string) $request->getUri()
);
}
}Metadata
Metadata
Assignees
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them