<?php
/**
 * Crude bin test script
 * Simulates GET /api/content/node/2 and outputs the ezcMvcResult
 */
$request = new ezcMvcRequest();
$request->date = new DateTime;
$request->uri = '/api/content/object/1/field/name';
$request->protocol = 'http';
$request->host = 'api.example.no';

$request->variables['nodeId'] = 2;

$controller = new ezpRestContentController( 'viewContent', $request );
$result = $controller->doViewContent();
print_r( $result );
?>