Skip to content

Commit 09eaab5

Browse files
committed
tests: updated Tester (with namespaces)
1 parent baabee5 commit 09eaab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PhpGenerator/format.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Assert::same( 'func(1)', Helpers::formatArgs('func(?)', array(1, 2)) );
2222
Assert::same( "func(array(\n\t1,\n\t2,\n))", Helpers::formatArgs('func(?)', array(array(1, 2))) );
2323
Assert::same( 'func(1, 2)', Helpers::formatArgs('func(?*)', array(array(1, 2))) );
2424

25-
Assert::throws(function() {
25+
Assert::exception(function() {
2626
Helpers::formatArgs('func(?*)', array(1, 2));
2727
}, 'Nette\InvalidArgumentException', 'Argument must be an array.');
2828

29-
Assert::throws(function() {
29+
Assert::exception(function() {
3030
Helpers::formatArgs('func(?, ?, ?)', array(1, 2));
3131
}, 'Nette\InvalidArgumentException', 'Insufficient number of arguments.');
3232

0 commit comments

Comments
 (0)