phpDocumentor Gallery
PHPUnit
[ class tree: Gallery ] [ index: Gallery ] [ all elements ]

Class: UnitTestPhpVm

Source Location: /lib/tools/phpunit/UnitTestPhpVm.class

Class UnitTestPhpVm

Class Overview

Unit test GalleryPhpVm. This is a mock GalleryPhpVm that the unit tests can use to simulate the exact conditions that they want from the php vm in order to exercise the code.

Use setReply() to tell it what function calls to expect. Provide it with an array of input parameters to expect, exact values by default or use an array key starting with 'fuzzy' to match the parameter to a regular expression. It will expect to receive calls in that specific order and play them back.

In setUp() call:

$this->_phpVm = new UnitTestPhpVm(); $gallery->_phpVm = $this->_phpVm;

In tearDown() call:

$this->assert($this->_phpVm->isComplete(), $this->_phpVm->getRemaining());

The check in tearDown() verifies that all expected calls were received.

Located in /lib/tools/phpunit/UnitTestPhpVm.class [line 69]

MockObject
   |
   --UnitTestPhpVm

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Method Summary
void   class_exists()  
void   crc32()  
void   date()  
void   defined()  
void   exit_()  
void   extension_loaded()  
void   function_exists()  
void   getAllHeaders()  
void   gethostbyname()  
void   get_magic_quotes_gpc()  
void   gzencode()  
void   gzinflate()  
void   header()  
void   headers_sent()  
void   iconv()  
void   ini_get()  
void   ini_set()  
void   mail()  
void   mb_convert_encoding()  
void   md5()  
void   nl_langinfo()  
void   rand()  
void   recode_string()  
void   setlocale()  
void   time()  

[ Top ]
Methods
class_exists  [line 151]

  void class_exists( $class_name  )

Parameters:
   $class_name: 


[ Top ]
crc32  [line 94]

  void crc32( $string  )

Parameters:
   $string: 


[ Top ]
date  [line 167]

  void date( $format, [ $timestamp = null]  )

Parameters:
   $format: 
   $timestamp: 


[ Top ]
defined  [line 163]

  void defined( $name  )

Parameters:
   $name: 


[ Top ]
exit_  [line 130]

  void exit_( [ $status = null]  )

Parameters:
   $status: 


[ Top ]
extension_loaded  [line 74]

  void extension_loaded( $name  )

Parameters:
   $name: 


[ Top ]
function_exists  [line 70]

  void function_exists( $functionName  )

Parameters:
   $functionName: 


[ Top ]
getAllHeaders  [line 138]

  void getAllHeaders( )



[ Top ]
gethostbyname  [line 159]

  void gethostbyname( $hostname  )

Parameters:
   $hostname: 


[ Top ]
get_magic_quotes_gpc  [line 114]

  void get_magic_quotes_gpc( )



[ Top ]
gzencode  [line 155]

  void gzencode( $data, [ $level = null], [ $encodingMode = null]  )

Parameters:
   $data: 
   $level: 
   $encodingMode: 


[ Top ]
gzinflate  [line 147]

  void gzinflate( $data, [ $length = null]  )

Parameters:
   $data: 
   $length: 


[ Top ]
header  [line 106]

  void header( $string, [ $replace = null]  )

Parameters:
   $string: 
   $replace: 


[ Top ]
headers_sent  [line 110]

  void headers_sent( )



[ Top ]
iconv  [line 78]

  void iconv( $inCharset, $outCharset, $string  )

Parameters:
   $inCharset: 
   $outCharset: 
   $string: 


[ Top ]
ini_get  [line 118]

  void ini_get( $varname  )

Parameters:
   $varname: 


[ Top ]
ini_set  [line 122]

  void ini_set( $varname, $newvalue  )

Parameters:
   $varname: 
   $newvalue: 


[ Top ]
mail  [line 142]

  void mail( $to, $subject, $message, [ $additionalHeaders = null], [ $additionalParameters = null]  )

Parameters:
   $to: 
   $subject: 
   $message: 
   $additionalHeaders: 
   $additionalParameters: 


[ Top ]
mb_convert_encoding  [line 82]

  void mb_convert_encoding( $string, $outCharset, $inCharset  )

Parameters:
   $string: 
   $outCharset: 
   $inCharset: 


[ Top ]
md5  [line 90]

  void md5( $string  )

Parameters:
   $string: 


[ Top ]
nl_langinfo  [line 98]

  void nl_langinfo( $item  )

Parameters:
   $item: 


[ Top ]
rand  [line 134]

  void rand( [ $min = null], [ $max = null]  )

Parameters:
   $min: 
   $max: 


[ Top ]
recode_string  [line 86]

  void recode_string( $request, $string  )

Parameters:
   $request: 
   $string: 


[ Top ]
setlocale  [line 102]

  void setlocale( $category, $locale  )

Parameters:
   $category: 
   $locale: 


[ Top ]
time  [line 126]

  void time( )



[ Top ]

Documentation generated on Fri, 03 Oct 2008 06:18:10 -0700 by phpDocumentor 1.3.0RC6