Skip to content

Commit

Permalink
tests: updated for last latte
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 12, 2022
1 parent 23a76c5 commit d185f95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"nette/application": "^3.0",
"nette/di": "^3.0",
"nette/tester": "^2.0",
"latte/latte": "^2.10.2 || ^3.0",
"latte/latte": "^2.10.2 || ^3.0.3",
"tracy/tracy": "^2.4",
"phpstan/phpstan-nette": "^0.12"
},
Expand Down
16 changes: 8 additions & 8 deletions tests/Forms.Latte3/forms.error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,34 @@ $latte->addExtension(new FormsExtension);

Assert::exception(function () use ($latte) {
$latte->compile('<form n:form></form>');
}, Latte\CompileException::class, 'Did you mean <form n:name=...> ? (at column 7)');
}, Latte\CompileException::class, 'Did you mean <form n:name=...> ? (on line 1 at column 7)');

Assert::exception(function () use ($latte) {
$latte->compile('<form n:name></form>');
}, Latte\CompileException::class, 'Missing arguments in n:name (at column 7)');
}, Latte\CompileException::class, 'Missing arguments in n:name (on line 1 at column 7)');

Assert::exception(function () use ($latte) {
$latte->compile('<form n:inner-name></form>');
}, Latte\CompileException::class, 'Unexpected attribute n:inner-name, did you mean n:inner-label? (at column 7)');
}, Latte\CompileException::class, 'Unexpected attribute n:inner-name, did you mean n:inner-label? (on line 1 at column 7)');


Assert::exception(function () use ($latte) {
$latte->compile('<html>{form /}');
}, Latte\CompileException::class, 'Missing arguments in {form} (at column 7)');
}, Latte\CompileException::class, 'Missing arguments in {form} (on line 1 at column 7)');

Assert::exception(function () use ($latte) {
$latte->compile('<html>{formContainer /}');
}, Latte\CompileException::class, 'Missing arguments in {formContainer} (at column 7)');
}, Latte\CompileException::class, 'Missing arguments in {formContainer} (on line 1 at column 7)');


Assert::exception(function () use ($latte) {
$latte->compile('<html>{label /}');
}, Latte\CompileException::class, 'Missing arguments in {label} (at column 7)');
}, Latte\CompileException::class, 'Missing arguments in {label} (on line 1 at column 7)');

Assert::exception(function () use ($latte) {
$latte->compile('<html>{input /}');
}, Latte\CompileException::class, 'Missing arguments in {input} (at column 7)');
}, Latte\CompileException::class, 'Missing arguments in {input} (on line 1 at column 7)');

Assert::exception(function () use ($latte) {
$latte->compile('<html>{name /}');
}, Latte\CompileException::class, 'Unexpected tag {name} (at column 7)');
}, Latte\CompileException::class, 'Unexpected tag {name} (on line 1 at column 7)');

0 comments on commit d185f95

Please sign in to comment.