/** * * public function serializeAction() { * $this->data = 'True'; * } */ public function testPredefinedClassParametersAreNotSerialized() { $this->params['_action'] = 'serialize'; $this->params['_format'] = 'json'; $controller = new \TestsController(); $controller->returns('json'); $return = $controller->process($this->params); $this->assertEquals('{"data":"True"}', $return); }
<?php namespace Fierce; require '../../../../config.php'; TestsController::run();