Skip to content

Commit bac6d42

Browse files
committed
Use assertions
1 parent 7822cc3 commit bac6d42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Math/Adder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class Adder
88
{
99
public static function add($a, $b):int
1010
{
11+
$c = $a + $b;
1112
throw new Exception("This method should be mocked!");
12-
return $a+$b;
13+
return $c;
1314
}
1415
}

0 commit comments

Comments
 (0)