PHP Classes

File: test/Helpers/ConsoleControllerMock.php

Recommend this page to a friend!
  Classes of Artur Graniszewski   ZEUS for PHP   test/Helpers/ConsoleControllerMock.php   Download  
File: test/Helpers/ConsoleControllerMock.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: ZEUS for PHP
Manage the execution of multiple parallel tasks
Author: By
Last change:
Date: 7 years ago
Size: 594 bytes
 

Contents

Class file image Download
<?php

namespace ZeusTest\Helpers;

use
Zeus\Controller\ConsoleController;

class
ConsoleControllerMock extends ConsoleController
{
    protected
$exitCode;

   
/**
     * @param int $code
     */
   
protected function doExit($code)
    {
       
$this->exitCode = $code;
    }

   
/**
     * @return int
     */
   
public function getExitCode()
    {
        return
$this->exitCode;
    }

   
/**
     * @param mixed $exitCode
     * @return ConsoleControllerMock
     */
   
public function setExitCode($exitCode)
    {
       
$this->exitCode = $exitCode;
        return
$this;
    }

}