From 249f51654c7cd49890b09b29c4b171d04ac14df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Dost=C3=A1l?= Date: Wed, 21 Oct 2015 15:57:35 +0200 Subject: [PATCH] typos --- readme.md | 2 +- tests/Forms/Controls.SelectBox.loadData.phpt | 6 +++--- tests/Forms/Forms.validationScope.phpt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 38118afc7..059d54b60 100644 --- a/readme.md +++ b/readme.md @@ -15,7 +15,7 @@ Nette\Forms greatly facilitates creating and processing web forms. What it can r Why should you bother setting up framework for a simple web form? You won't have to take care about routine tasks such as writing two validation scripts (client and server) and your code will be safe against security breaches. -Nette Framework puts a great effort to be safe and since forms are the most common user input, Nette forms are as good as impenetrable. All is maintained dynamically and transparently, nothing has to be set manually. Well known vulnerabilities such as Cross Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) are filtered, as well as special control characters. All inputs are checked for UTF-8 validity. Every multiple-choice, select boxe and similar are checked for forged values upon validating. Sounds good? Let's try it out. +Nette Framework puts a great effort to be safe and since forms are the most common user input, Nette forms are as good as impenetrable. All is maintained dynamically and transparently, nothing has to be set manually. Well known vulnerabilities such as Cross Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) are filtered, as well as special control characters. All inputs are checked for UTF-8 validity. Every multiple-choice, select box and similar are checked for forged values upon validating. Sounds good? Let's try it out. [See documentation](https://doc.nette.org/en/forms). diff --git a/tests/Forms/Controls.SelectBox.loadData.phpt b/tests/Forms/Controls.SelectBox.loadData.phpt index 8358caccd..3cc745a62 100644 --- a/tests/Forms/Controls.SelectBox.loadData.phpt +++ b/tests/Forms/Controls.SelectBox.loadData.phpt @@ -39,7 +39,7 @@ test(function () use ($series) { // Select }); -test(function () use ($series) { // Empty select +test(function () { // Empty select $_POST = ['select' => 'red-dwarf']; $form = new Form; @@ -65,7 +65,7 @@ test(function () use ($series) { // Select with prompt }); -test(function () use ($series) { // Select with optgroups +test(function () { // Select with optgroups $_POST = ['select' => 'red-dwarf']; $form = new Form; @@ -192,7 +192,7 @@ test(function () use ($series) { // setItems without keys }); -test(function () use ($series) { // setItems without keys +test(function () { // setItems without keys $form = new Form; $input = $form->addSelect('select')->setItems(range(1, 5), FALSE); Assert::same([1 => 1, 2, 3, 4, 5], $input->getItems()); diff --git a/tests/Forms/Forms.validationScope.phpt b/tests/Forms/Forms.validationScope.phpt index 3a410e824..941db9a90 100644 --- a/tests/Forms/Forms.validationScope.phpt +++ b/tests/Forms/Forms.validationScope.phpt @@ -13,7 +13,7 @@ require __DIR__ . '/../bootstrap.php'; $datasets = [ - ['send1', ['container', 'form', 'name', 'age', 'age2']], + ['send1', ['container', 'form', 'name', 'age', 'age2']], ['send2', ['form']], ['send3', ['form', 'name']], ['send4', ['form', 'age']],