-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rename classes and add more tests #7
Conversation
@schnittstabil objections to any of this? |
Stack is actually a middleware pipe. DelegateToCallableAdapter is actually a proxy. Refs #4
Create a common test case and test delegate separately. Since delegate handles most of the work, most of the testing should happen there.
All of these are used in the base test case, not in actual tests.
206dfac
to
bc424e6
Compare
LGTM – I really like the adapter-to-proxy rename. FWIW, dispatching and pipe management can be separated, because those have different concerns: $pipe = new MiddlewarePipe($middlewares);
// …
$pipe->append(…);
$pipe->prepend(…);
// …
$dispatcher = new Dispatcher($pipe, $default);
$response = $dispatcher->dispatch(ServerRequest::fromGlobals()); – However, maybe, it's a bit too over-engineered… |
Hmm, just one further thought: A Thus, an |
I don't see a need for it right now, especially if it explicitly depends on |
Released in 0.2.0. |
Rename classes by intent and test each class separately.