https://github.com/exu/php-bdd-parser-example
This repo show some PHPSpec and Behat workflow
https://github.com/exu/php-bdd-parser-example
Last synced: 11 months ago
JSON representation
This repo show some PHPSpec and Behat workflow
- Host: GitHub
- URL: https://github.com/exu/php-bdd-parser-example
- Owner: exu
- Created: 2013-12-06T22:17:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-11T16:58:45.000Z (over 12 years ago)
- Last Synced: 2025-03-26T16:29:23.596Z (over 1 year ago)
- Language: PHP
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Simple file parser created with Behat and PHPSpec
More details could be found on my Blog entry:
[[http://wysocki.in/programming/2013/12/10/behat-and-phpspec-example/http://wysocki.in/programming/2013/12/10/behat-and-phpspec-example/][Behat and PHPSpec example on simple task]]
What it should do ? Look at =parser.feature= file in =features/= directory
** Installation
This project is based on composer so you will need it. To
install composer. I prefer installing composer globally so
everything what you should do is
#+begin_src sh
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
#+end_src
#+RESULTS:
Next you should clone repository and run =composer install= command
to download and resolve all dependencies (composer will do it automatically).
#+begin_src sh
git clone git@github.com:exu/php-bdd-parser-example.git
cd php-bdd-parser-example
composer install
#+end_src
** Run some tests :)
#+begin_src sh
bin/behat
#+end_src
#+begin_src sh
bin/phpspec --format=pretty
#+end_src
** Running application
If You want to run parser:
#+begin_src sh
bin/console parse
#+end_src
** Bonus
Try to change feature file e.g. with other data in tables
it will really fail :)
** Enjoy!