Add PHPUnit example
This commit is contained in:
parent
a98d4ff909
commit
a47b07c5f0
7 changed files with 1766 additions and 0 deletions
13
php/phpunit/src/Calculator.php
Normal file
13
php/phpunit/src/Calculator.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App;
|
||||
|
||||
final class Calculator
|
||||
{
|
||||
public function add(int $a, int $b): int
|
||||
{
|
||||
return $a + $b;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue