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

zendframework / zf2 / 13530 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2015 08:17PM UTC
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

30 Apr 2015 07:51PM UTC coverage: 81.216% (+0.003%) from 81.213%
13530.4

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

Source Files on job 13530.4
  • Tree
  • List 0
  • Changed 17
  • Source Changed 2
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13530
  • Travis Job 13530.4
  • 25ffe830 on github
  • Prev Job for on master (#13439.4)
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