• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zendframework / zf2 / 13530
100%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2015 08:17PM UTC
Jobs 1
Files 2171
Run time 95min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
13530

Pull #7474

travis-ci

weierophinney
[#7445/#7448] Repair BC break

This patch clarifies the interaction of the various flags when
validating an input. In it, I added test cases for the various
behaviors

- `required === true` + `allow_empty === true` + `continue_if_empty === false` -> validators are NOT run
- `required === true` + `allow_empty === true` + `continue_if_empty === true` -> validators are run
- `required === false` + `allow_empty === true` + `continue_if_empty === false` -> validators are NOT run
- `required === false` + `allow_empty === true` + `continue_if_empty === true` -> validators are run
- `required === false` + `allow_empty === false` + `continue_if_empty === false` -> validators are NOT run
- `required === false` + `allow_empty === false` + `continue_if_empty === true` -> validators are run

Changes were applied to `setRequired()`, which now no longer toggles
`allow_empty`, and the logic in `Input::isValid()` and
`FileInput::isValid()` was updated to match the above.

Two tests were removed as they were testing false assumptions:

- `BaseInputFilterTest::testValidationMarksInputInvalidWhenNotRequiredAndAllowEmptyFlagIsFalse`
- `FactoryTest::testFactoryWillCreateInputWithSuggestedRequiredFlagAndImpliesAllowEmptyFlag`
Pull Request #7474: Implement expected Input::isValid workflow

63898 of 78677 relevant lines covered (81.22%)

37.68 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
library/Zend/Db/Sql/Select.php
1
100.0
library/Zend/View/Helper/Escaper/AbstractHelper.php
1
100.0
library/Zend/Session/Storage/AbstractSessionArrayStorage.php
1
100.0
library/Zend/Session/AbstractContainer.php
1
100.0
library/Zend/Filter/FilterPluginManager.php
2
100.0
library/Zend/InputFilter/FileInput.php
2
100.0
library/Zend/Db/Adapter/Driver/Pdo/Result.php
3
100.0
library/Zend/InputFilter/Input.php
4
100.0
library/Zend/View/Model/ViewModel.php
5
100.0
library/Zend/Db/Sql/Insert.php
6
100.0
library/Zend/Filter/Word/AbstractSeparator.php
7
100.0
library/Zend/Db/Sql/Expression.php
Jobs
ID Job ID Ran Files Coverage
4 13530.4 30 Apr 2015 08:15PM UTC 0
81.22
Travis Job 13530.4
Source Files on build 13530
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #13530
  • Pull Request #7474
  • PR Base - master (#13439)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc