Bug 226804 - Add support for Behat-BDD for PHP
Add support for Behat-BDD for PHP
Status: NEW
Product: php
Classification: Unclassified
Component: Project
8.0.2
All All
: P3 with 16 votes (vote)
: TBD
Assigned To: Tomas Mysik
issues@php
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-27 20:20 UTC by songoko20000
Modified: 2015-04-29 13:13 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description songoko20000 2013-02-27 20:20:26 UTC
It would be great if Netbeans added support for Behat framework (http://behat.org/).

Behat is used for doing both Functional/Story testing and Behavior Driven Development. It was recommended by the developers of PHPUnit for doing BDD as the support for BDD is PHPUnit is beign deprecated in favor of Behat.
Comment 1 shadypierre 2013-10-27 17:40:45 UTC
+1
Comment 2 sandreas 2014-03-11 09:18:58 UTC
+2
Comment 3 MacDada 2014-05-29 14:04:24 UTC
+1 for Behat support.

@songoko20000@netbeans.org: PHPUnit is not deprecated in favor of Behat.
1. PHPUnit is a unit testing tool, while Behat is a functional/acceptance testing tool.
2. Devs are encouraged to use PHPUnit functions while writing Behat tests (Behat does not provide any assertion methods).


Anyway,

http://plugins.netbeans.org/plugin/17939/cucumber-features
Highlights syntax, works with NB8.

http://plugins.netbeans.org/plugin/46231/cetriolo
More features: highlights syntax, autocompletes, has navigator, works with NB8, but does not recognize PHP feature context steps.

Behat support could be based upon Cetriolo plugin.
Comment 4 songoko20000 2014-05-29 15:37:07 UTC
BDD support was deprecated then removed entirely from PHPUnit.
see:
https://github.com/sebastianbergmann/phpunit/commit/6aa9183496f9bb2131d17ba08195a93a07937762#comments

and

http://everzet.com/post/1274470180/behat-bigupdate

and finally a quote from PHPUnit main site:

http://phpunit.de/manual/3.7/en/behaviour-driven-development.html

Caution
You want to use Behat for Behaviour-Driven Development instead of the PHPUnit_Extensions_Story_TestCase extension to PHPUnit that is discussed in the remainder of this chapter.

It seems you were confused by my comment, but I was talking about BDD support in PHPUnit.


(In reply to MacDada from comment #3)

> +1 for Behat support.
> 
> @songoko20000@netbeans.org: PHPUnit is not deprecated in favor of Behat.
> 1. PHPUnit is a unit testing tool, while Behat is a functional/acceptance
> testing tool.
> 2. Devs are encouraged to use PHPUnit functions while writing Behat tests
> (Behat does not provide any assertion methods).
> 
> 
> Anyway,
> 
> http://plugins.netbeans.org/plugin/17939/cucumber-features
> Highlights syntax, works with NB8.
> 
> http://plugins.netbeans.org/plugin/46231/cetriolo
> More features: highlights syntax, autocompletes, has navigator, works with
> NB8, but does not recognize PHP feature context steps.
> 
> Behat support could be based upon Cetriolo plugin.
Comment 5 mrsinguyen 2014-06-18 10:29:21 UTC
Very like this +1
Comment 6 myke 2014-10-20 21:29:18 UTC
+1
Comment 7 vukanac 2015-02-19 15:20:52 UTC
+1
Comment 8 tetrode 2015-04-29 13:13:41 UTC
+1 would be great


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo