January 2012
2 posts
3 tags
Behat 2.3-dev + Gherkin 1.2-dev
I’ve just finished i18n refactoring for both Behat and Gherkin.
Now they both use simple i18n.php files containing simple translation
arrays. This switch gave both Behat and it’s Gherkin parser
noticeable performance boost during startup.
Behat’s i18n.php
Behat always had its own translation dictionary, used by its formatters.
Every message, that Behat prints to you, like...
ctrlp - Fuzzy file, buffer, mru and tag finder for... →
thechangelog:
One of the biggest pain points for folks like me that switched to Vim from TextMate has been a good way to find and open files within a project. The Command-T plugin has kept me mostly happy, even though it requires running Vim compiled with Ruby support.
This weekend at Jesse’s recommendation, I tried ctrlp.vim, a fuzzy file, buffer, Most Recently Used (MRU), and tag finder...
November 2011
1 post
2 tags
Latest php on MacOS through homebrew
With INTL, MySQL and PgSQL:
brew install --with-intl --with-mysql --with-pgsql https://raw.github.com/adamv/homebrew-alt/master/duplicates/php.rb
September 2011
1 post
2 tags
The lost art of making clients happy →
First in the series article about BDD for our brand new technical Knp blog
June 2011
2 posts
4 tags
Behat v2: The OOP powa!
Ok, the week is passed. Time to make a decision. But first, i want to say thank you! Thank you all for awesome feedback about our future and for just being Behat users no matter what amount of time you use it or what usestyle you prefer. Let me make my point clear once again - every user is important for me and Behat community.
One week ago you answered my simple question “should we...
4 tags
Behat: Bye-bye ninja-style Ruby, hello oop-style...
Now, as Behat is mature product, it’s time to listen userbase. Most often feedback is:
http://twitter.com/alexandresalome/status/78109547872522240
Which means something like: “Why PHP tool can’t be more PHP and less Ruby style?”. It CAN!
PHP people dont like ruby-style callback-oriented code in their PHP applications, even if it’s a testing code. And there’s...
May 2011
1 post
2 tags
Symfony is a PHP’s Harvey Dent! Because it’s a community PHP...
November 2010
4 posts
3 tags
RESTource relations and customizations
On last week we’ve released RestfulControllersBundle, which adds Symfony2 controllers action naming convention & ability to autogenerate routes from this proper action names.
And as any proof of concept, it has missing parts, which we mostly implemented now.
Routes parameter customization
First of all, autogeneration is great. But what if you want to customize some route parameters...
3 tags
Not tested bugfix is 100 times worse than a problem it tries to solve, because...
3 tags
Who Needs Actions When You Got Routes
Really. Who need to name their controller actions, when we got routes?
Why we need to name object methods? It’s because PHP need to identify which one of object methods you call.
Why we need to name controller actions? It’s because framework need to identify which action user calls? NO! Framework already knows what action to call thanks to Routing mechanisms.
So, action names is, in reality,...
3 tags
Behat v0.3
Today i’m releasing new major version of Behat. It’s 0.3 & generally focused on hooks & formatters. I’ve totally refactored filters, hooks loaders/container/dispatcher & added 2 new great formatters.
Filters
Before this update you could run all your feature files inside 1 folder or single feature file anywhere. But what if you want to run only specific scenario...
October 2010
4 posts
5 tags
hello/console behat:test:bundle ...
Another great day in PHP BDD history ;-)
Today is the day of EverzetBehatBundle release.
Behat core
I’ve made big changes in Behat core to support Symfony2 transition.
Now Behat is more readable, beautifull & fast. Read about changes in v0.2.5 changelog and learn updated API.
EverzetBehatBundle
So, Bundle. Behat integration into Symfony2 is very different from symfony1...
4 tags
Behat v0.2.4 (formatters bugfix)
I’ve introduced very serious bug in v0.2.3, that causes Behat to fails on UNIX (not MacOS) systems, because for UNIX 'prettyFormatter.php' != 'PrettyFormatter.php', but for MacOS fs 'prettyFormatter.php' == 'PrettyFormatter.php'. And i’m on MacOS =/
Sorry for that, i’ve fixed bug and uploaded new Behat version to pear.everzet.com & to GitHub.
Also, v0.2.4 introduces console...
3 tags
Behat v0.2.3
I’ve updated Behat to 0.2.3 version. It includes bunch of bug-fixes and code improvements:
http://github.com/everzet/Behat/compare/v0.2.2…v0.2.3
I’ve moved Loading routines for Features, StepDefinitions, Hooks inside their own Containers with ability to specify custom loaders (annotated classes for example).
Also, i’ve updated sfBehatPlugin to 1.1.0:
...
3 tags
Behat v0.2.0 aka BigUpdate
Behat 0.2 released. It’s major update with bunch of new features & fixes. And now, Behat is in beta stage. So, if you haven’t use it yet… Hell, it’s about time!
First of all, PHPUnit’s BDD functionality is deprecated in 3.5 and will be removed in 3.6. So, it’s time to switch to Behat, as Sebastian proposed :-)
Why “BigUpdate”? Because...
September 2010
3 posts
Behat, symfony
I’ve pleased to anounce first ever version relese of BDD plugin for symfony, based on Behat: sfBehatPlugin.
It has 2 tasks for features initialization & bunch of predefined steps, that covers almost all symfony functional tests functionality. Using symfony? Try it now!
3 tags
BDD in PHP or "Just Be Hat"
Today is a great day. Why? Because from today we can write Cucumber-like behavior tests in php.
I’ve finished first alpha of Behat. Behat – is behavior driven development framework for php, based on Cucumber’s Gherkin syntax. It means, that it works with same feature files, Cucumber does & generate almost the same output, Cucumber does. But inside… Inside it’ modern, beautifull...
August 2010
1 post
4 tags
Facebook's "phpsh" - interactive shell for PHP
I love direction in which IRB for ruby works. My friend, Antono uses IRB very often when testing or debuging his RoR applications. So i feel, that i need something similar, but for PHP.
There are lot of different tryies to implement comfortable interactive shell in PHP, such as phpa or ~jk php shell. But i thinks, that Facebook developers with their phpsh found the best way of doing this &...