Revision 6528,
304 bytes
checked in by gustavo, 12 years ago
(diff) |
Ticket #2766 - Merge do branch das novas funcionalidaes para o trunk
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[6351] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /* Test resource definitions */ |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * @namespace Tonic\Tests |
---|
| 7 | * @uri /responsetest |
---|
| 8 | */ |
---|
| 9 | class TestResponse extends Resource { |
---|
| 10 | |
---|
| 11 | function get($request) { |
---|
| 12 | |
---|
| 13 | $response = new Response($request); |
---|
| 14 | $response->body = 'test'; |
---|
| 15 | return $response; |
---|
| 16 | |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | } |
---|
| 20 | |
---|
Note: See
TracBrowser
for help on using the repository browser.