예제 #1
0
 /**
  * 
  *  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);
 }
예제 #2
0
파일: test.php 프로젝트: fierce/fierce
<?php

namespace Fierce;

require '../../../../config.php';
TestsController::run();