Source for file ArithmeticFixture.php
Documentation is available at ArithmeticFixture.php
# Copyright (c) 2002-2005 Cunningham & Cunningham, Inc.
# Released under the terms of the GNU General Public License version 2 or later.
# PHP5 translation by Luis A. Floreani <luis.floreani@gmail.com>
require_once 'Testing/FIT/Fixture/Primitive.php';
* iterate through rows but skip the first one
* @return boolean true on success
public function doRows( Testing_FIT_Node $node )
// start at second - the first simply contains the fixture with parameter
return parent ::doRows ( $node );
* As this is a primitve fixture, it knows exactly what to do
* @param object $cell A parse object
* @return boolean true on success
public function doCell( Testing_FIT_Node $node ) {
$this->x = intval( $node->cData );
$this->y = intval( $node->cData );
$this->_checkCell ( $node, $this->x + $this->y ); break;
$this->_checkCell ( $node, $this->x - $this->y ); break;
$this->_checkCell ( $node, $this->x * $this->y ); break;
throw new Exception ( 'ArithmeticException: / by zero' );
$this->_checkCell ( $node, $this->x / $this->y ); break;
Documentation generated on Mon, 11 Mar 2019 15:05:05 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|