Revision 6019,
655 bytes
checked in by niltonneto, 12 years ago
(diff) |
Ticket #2507 - Modificada implementação para alinhamento com projeto de camada REST.
|
-
Property svn:executable set to
*
|
Line | |
---|
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 | Then I should fail to load the resource with response code "404" and body 'A resource matching URI "/resourcetest" was not found' |
---|
10 | |
---|
11 | Scenario: Load a resource that exists |
---|
12 | Given the request URI of "/resourcetest/one" |
---|
13 | When I create a request object |
---|
14 | And I load the resource |
---|
15 | And execute the request |
---|
16 | Then the response code should be "200" |
---|
17 | And the response body should be 'test' |
---|
18 | |
---|
Note: See
TracBrowser
for help on using the repository browser.