We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm trying to build a integration test suite in my project and with a simple test for a get query I get the following error
ErrorException: Undefined index: REQUEST_METHOD /path/vendor/slim/slim/Slim/Environment.php:124 /path/vendor/slim/slim/Slim/Environment.php:76 /path/vendor/slim/slim/Slim/Slim.php:159 /path/vendor/slim/slim/Slim/Helper/Set.php:228 /path/vendor/slim/slim/Slim/Helper/Set.php:88 /path/vendor/slim/slim/Slim/Slim.php:234 /path/vendor/slim/slim/Slim/Slim.php:674 /path/vendor/slim/slim/Slim/Middleware/MethodOverride.php:78 /path/src/Middleware/ApiAuthorization.php:57 /path/vendor/slim/slim/Slim/Slim.php:1302 /path/public/index.php:80 /path/Test/BaseTestCase.php:21 /path/vendor/there4/slim-test-helpers/src/There4/Slim/Test/WebTestCase.php:19
$this->client->get('/v1/users/fake', array(), $this->getAuthHeader()); $this->assertEquals(200, $this->client->response->status()); $this->assertEquals(array(), $this->client->response->body());
I don't know if I need to do something more, this is my getSlimInstance method:
$testSettings = array( 'version' => '0.0.0', 'debug' => false, 'mode' => 'testing', ); $settings = include __DIR__.'/../config/settings.php'; $settings = array_merge($settings, $testSettings); $app = new \Slim\Slim($settings);
Did I forgot about something?
Thanks
The text was updated successfully, but these errors were encountered:
我也遇到了同样的错误,请问怎样解决啊?
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm trying to build a integration test suite in my project and with a simple test for a get query I get the following error
I don't know if I need to do something more, this is my getSlimInstance method:
Did I forgot about something?
Thanks
The text was updated successfully, but these errors were encountered: