You are here

class Calculator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/_files/Calculator.php \Calculator

Hierarchy

Expanded class hierarchy of Calculator

File

vendor/phpunit/phpunit/tests/_files/Calculator.php, line 2

View source
class Calculator {

  /**
   * @assert (0, 0) == 0
   * @assert (0, 1) == 1
   * @assert (1, 0) == 1
   * @assert (1, 1) == 2
   */
  public function add($a, $b) {
    return $a + $b;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Calculator::add public function @assert (0, 0) == 0 @assert (0, 1) == 1 @assert (1, 0) == 1 @assert (1, 1) == 2