Skip to content
Snippets Groups Projects
Commit fd789ca5 authored by Jan Kuchař's avatar Jan Kuchař
Browse files

assertSignature: added test for alternative syntax

parent 41fb5961
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -10,6 +10,7 @@ $f1 = function(T1 $t1, T2 $t2): T3 {return new T3;};
// Positive scenario
assertSignature($f1, params(T1::class, T2::class), T3::class);
assertSignature($f1, [T1::class, T2::class], T3::class); // alternative syntax
// Optional by accident: parameter
Assert::exception(function () use ($f1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment