Revision 6754,
710 bytes
checked in by niltonneto, 12 years ago
(diff) |
Ticket #0000 - Copiadas as alterações do Trunk. Versão final da 2.4.1.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[6351] | 1 | Feature: Resource object |
---|
| 2 | In order to execute code |
---|
| 3 | As a PHP developer |
---|
| 4 | I want a PHP object that represents a HTTP resource |
---|
| 5 | |
---|
| 6 | Scenario: Load a non existant resource |
---|
| 7 | Given the request URI of "/resourcetest" |
---|
| 8 | When I create a request object |
---|
| 9 | And I load the resource |
---|
| 10 | And execute the request |
---|
| 11 | Then the response code should be "404" |
---|
| 12 | And the response body should be 'Nothing was found for the resource "/resourcetest".' |
---|
| 13 | |
---|
| 14 | Scenario: Load a resource that exists |
---|
| 15 | Given the request URI of "/resourcetest/one" |
---|
| 16 | When I create a request object |
---|
| 17 | And I load the resource |
---|
| 18 | And execute the request |
---|
| 19 | Then the response code should be "200" |
---|
| 20 | And the response body should be 'test' |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.