~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/tests/_files/Calculator.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class Calculator
 
3
{
 
4
    /**
 
5
     * @assert (0, 0) == 0
 
6
     * @assert (0, 1) == 1
 
7
     * @assert (1, 0) == 1
 
8
     * @assert (1, 1) == 2
 
9
     */
 
10
    public function add($a, $b)
 
11
    {
 
12
        return $a + $b;
 
13
    }
 
14
}