Преглед на файлове

adds plaintext test to zend1

Keith Newman преди 9 години
родител
ревизия
de88045b10
променени са 2 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 12 0
      frameworks/PHP/zend1/application/controllers/PlaintextController.php
  2. 1 0
      frameworks/PHP/zend1/benchmark_config.json

+ 12 - 0
frameworks/PHP/zend1/application/controllers/PlaintextController.php

@@ -0,0 +1,12 @@
+<?php
+
+class PlaintextController extends Zend_Controller_Action
+{
+    public function indexAction()
+    {
+      $this->_helper->viewRenderer->setNoRender(true);
+      $this->getResponse()
+           ->setHeader('Content-Type', 'text/plain')
+           ->appendBody('Hello, World!');
+    }
+}

+ 1 - 0
frameworks/PHP/zend1/benchmark_config.json

@@ -3,6 +3,7 @@
   "tests": [{
   "tests": [{
     "default": {
     "default": {
       "setup_file": "setup",
       "setup_file": "setup",
+      "plaintext_url": "/plaintext",
       "json_url": "/json",
       "json_url": "/json",
       "db_url": "/db",
       "db_url": "/db",
       "query_url": "/db-multi?queries=",
       "query_url": "/db-multi?queries=",