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

Procedural File: UnitTestPhpVm.class

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

Page Details

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.

Version:  $Revision: 17580 $
Author:  Bharat Mediratta <bharat@menalto.com>
Classes
Class Description
UnitTestPhpVm 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.

Documentation generated on Fri, 08 Oct 2010 06:01:40 -0700 by phpDocumentor 1.3.0RC6