-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/initial structure #1
New issue
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
base: master
Are you sure you want to change the base?
Conversation
jedkirby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far so good, will give it a test at lunch today to see if the readme instructions are ok.
steadweb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments added, mainly semenatics.
|
|
||
| class WebTestCase extends TestCase | ||
| { | ||
| /** @var App $app */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I don't like this one liners, I'd prefer:
/**
* @var App $app
*/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm of the same preference tbh
|
|
||
| /** | ||
| * Set up the app and client instance | ||
| * @inheritdoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
|
|
||
| final class ExtensionToContentTypeTest extends TestCase | ||
| { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
| @@ -0,0 +1,37 @@ | |||
| <?php namespace Test\Unit\Utility; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Namespace on a new line.
| "description": "A webserver ran by ReactPHP", | ||
| "type": "project", | ||
| "license": "MIT", | ||
| "authors": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is necessary, as we have this information in git.
| } | ||
| ], | ||
| "minimum-stability": "stable", | ||
| "require": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must require php: ^7.1
| use Psr\Http\Message\ServerRequestInterface as Request; | ||
| use Psr\Http\Message\ResponseInterface as Response; | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
|
|
||
| $configuration = require APP_ROUTE . 'src/Config/main.php'; | ||
|
|
||
| $app = new Slim( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Online would read better here
$app = new Slim(new Contianer($configuration));
| use Slim\Http\Response as SlimResponse; | ||
| use Slim\Http\Headers; | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
| { | ||
| /** @var App $app */ | ||
| protected $app; | ||
| /** @var Client $client */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new line between properties.
Adds: