Failed asserting that two strings are identical.
Expected :'http://example.com/foo/bar'
Actual :'http://example.com'
<?phpnamespaceCodeIgniter;
useCodeIgniter\HTTP\IncomingRequest;
useCodeIgniter\HTTP\URI;
useCodeIgniter\HTTP\UserAgent;
useCodeIgniter\Test\CIUnitTestCase;
useConfig\App;
finalclass TestTest extends CIUnitTestCase
{
publicfunctiontest()
{
$appConfig = newApp();
$request = newIncomingRequest(
$appConfig,
newURI($appConfig->baseURL . 'foo/bar'),
null,
newUserAgent()
);
$this->assertSame(
'http://example.com/foo/bar',
(string) $request->getUri()
);
}
}
The following test fails on
developand4.4.