Last change
on this file since 298 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
710 bytes
|
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 | 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.