Testing_FIT
[ class tree: Testing_FIT ] [ index: Testing_FIT ] [ all elements ]

Source for file Division.php

Documentation is available at Division.php

  1. <?php
  2.  
  3. include_once 'Testing/FIT/Fixture.php';
  4. include_once 'Testing/FIT/Fixture/Column.php';
  5.  
  6.  
  7. {
  8.  
  9.     protected $_typeDictionary = array(
  10.                                         'a' => 'float',
  11.                                         'b' => 'float',
  12.                                         'quotient()'    => 'float',
  13.                                     );
  14.  
  15.     public $a;
  16.     public $b;
  17.  
  18.     public function quotient(
  19.     {
  20.         if$this->b == 0 {
  21.             return 'division by zero!';
  22.         }
  23.         return $this->a / $this->b;
  24.     }
  25. }
  26.  
  27. ?>

Documentation generated on Mon, 11 Mar 2019 15:05:05 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.