BDD stands for "Behavior Driven Development" and is an agile software development technique.
Unlike TDD where developers write code and tests, BDD requires them to write the tests first, and then the code to satisfy the desired conditions and criteria.
This way developers write very targeted code, that works only in certain situations, yet it works flawlessly and without any errors or design flaws.
This technique has its drawbacks, but when developing custom applications it is probably the best way to approach the problem.
Behat was inspired by Ruby's Cucumber framework, and is one of the most well-known BDD frameworks in the PHP environment.
If you opt for using Behat in one of your future projects, reading the framework's documentation is a must for any newcomer.
What is new in this release:
- Add support for typehinted parameters
- Allow any whitespace characters at the end of context class
- Fix scenario with decimal number following string in Turnip pattern
- Fix scenario with empty string in step with Turnip pattern
- Fix scenario where step has slashes in Turnip pattern
What is new in version 3.0.12:
- Fixed remaining issues with the definition arguments parsing
- Introduced Testwork\Argument component
What is new in version 2.3.5:
- Fixed formatter language configuration and locale guesser.
What is new in version 2.3.4:
- Added StepEvent::getLogicalParent().
What is new in version 2.3.2:
- Fixed bug in ErrorException, that caused wrong exceptions on warnings and notices.
What is new in version 2.3.1:
- Updated error handler to avoid suppressed exceptions.
- Autoload bootstrap scripts in their name order.
- Updated Gherkin dependency to v2.0.1.
What is new in version 2.3.0:
- Switch to the Behat\Gherkin 2.0 usage
- Migration to the single-file translation
- Support for callables inside steps chains
- Support for *.yml and *.php as definition translations
- Added opposite options to option switchers (--[no-]colors, --[no-]multiline, etc.)
- Redesigned --story-syntax
- Refactored Runner
- Performance improvements
What is new in version 2.2.7:
- Added ability to search translated definitions with --definitions.
- Fixed custom formatters use bug.
What is new in version 2.2.4:
- Prevent method name duplication with definition snippets.
What is new in version 2.2.0:
- Multiple formats and outputs support
- New snippets formatter
- New failed formatter
- Updated output of -d option
- Search abilities added to -d option
- New --dry-run option
- New --append-snippets option
- Rerun functionality refactored to use failed formatter internally
- Overall code refactoring and cleaning
Requirements:
- PHP 5.3 or higher
Comments not found