You are here

Calculator.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 vendor/phpunit/phpunit/tests/_files/Calculator.php

File

vendor/phpunit/phpunit/tests/_files/Calculator.php
View source
<?php

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;
  }

}

Classes

Namesort descending Description
Calculator