Skip to content
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

Add response() method #75

Merged
merged 11 commits into from
Jan 5, 2017
Merged

Add response() method #75

merged 11 commits into from
Jan 5, 2017

Conversation

freekmurze
Copy link
Member

No description provided.

DCzajkowski and others added 11 commits January 5, 2017 21:13
* Remove phpunit.xml from VCS

* Move from Fractalistic\Fractal to Fractal\Fractal

* Added a response test

* Add a respond method

* Attach the status code to responses

* Attach headers to responses

* Added an ability to attach status code in a closure

* Moved from a function to an object instantiation

* Allow headers in the closure

* Refactor a foreach loop to use built-in phpunit method

* Allow chaining

* Add a default status code

* Make sure (in the test) you can pass multiple headers in a respond() function

* Make sure the default status code is 200

* Make sure headers() method works

* Clean-up tests

* Add docblocks

* Updated README to include new responses.

* Compliment StyleCI

* Allow for the code to be passed as a first argument and a callback as a second.

* "Don't exclude phpunit.xml from VCS"

This reverts commit 559ccfe.
@freekmurze freekmurze merged commit 96b4a5c into master Jan 5, 2017
@freekmurze freekmurze deleted the feature-response branch January 5, 2017 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants