License
Planet PHP
Certified Schizophrenic - zillablog - PHP
Ogres Select Consumption Over Networking (OSCON) - Terry Chay
What MySQL 5 features do I use? - Lukas Smith
Zend Framework 1.6 Release Candidate 1 now available! - planetphp
PHPSecInfo talk at OSCON 2008 - Ed Finkler
Usability FAIL - Brian Moon
Usability FAIL - Brian Moon
Dealing with non-paying client - Michael Kimsal
OSCON 2008: Day One - Ben Ramsey
Quality Assurance in PHP Projects - Sebastian Bergmann
Wednesday, July 23. 2008
Ogres Select Consumption Over Networking (OSCON) - Terry Chay
Tuesday, July 22. 2008
What MySQL 5 features do I use? - Lukas Smith
Tuesday, July 22. 2008
Zend Framework 1.6 Release Candidate 1 now available! - planetphp
Tuesday, July 22. 2008
PHPSecInfo talk at OSCON 2008 - Ed Finkler
Tuesday, July 22. 2008
Usability FAIL - Brian Moon
Tuesday, July 22. 2008
Usability FAIL - Brian Moon
Tuesday, July 22. 2008
Dealing with non-paying client - Michael Kimsal
Tuesday, July 22. 2008
OSCON 2008: Day One - Ben Ramsey
Monday, July 21. 2008
Quality Assurance in PHP Projects - Sebastian Bergmann
Monday, July 21. 2008
Statistics
Last entry: 18.07.2008 17:27
368 entries written
1136 comments have been made
Calendar
Quicksearch
Comments
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Tue, 22.07.2008 13:55
I'll never deny an influence f rom rspec
- only the accusa
tion that I'm motivated to re-
implement Ruby because i [...]
Tue, 22.07.2008 13:55
I'll never deny an influence f rom rspec
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Tue, 22.07.2008 10:11
Looking at your example, the f irst thing that comes to my mi nd is RSpec: [geshi lang=ru by] # bowling_spec.rb [...]
Tue, 22.07.2008 10:11
Looking at your example, the f irst thing that comes to my mi nd is RSpec: [geshi lang=ru by] # bowling_spec.rb [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Mon, 21.07.2008 11:15
The only change you made thoug h was to use a lamdba - it sti ll suffers from the same probl ems of being verbose, no [...]
Mon, 21.07.2008 11:15
The only change you made thoug h was to use a lamdba - it sti ll suffers from the same probl ems of being verbose, no [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Sun, 20.07.2008 10:56
I'm not convinced if a DSL is the way to go. What about a re ally base class for BDD storie s. [geshi lang=php] [...]
Sun, 20.07.2008 10:56
I'm not convinced if a DSL is the way to go. What about a re ally base class for BDD storie s. [geshi lang=php] [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Sat, 19.07.2008 00:21
Final clarification - the exte rnal DSL is not based on any e xisting language. Man, I will never mention Ruby in a [...]
Sat, 19.07.2008 00:21
Final clarification - the exte rnal DSL is not based on any e xisting language. Man, I will never mention Ruby in a [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Fri, 18.07.2008 23:50
If your going to change langua ge. Go for Python, I find it f ar superior to Ruby. By the way, I don't think decr [...]
Fri, 18.07.2008 23:50
If your going to change langua ge. Go for Python, I find it f ar superior to Ruby. By the way, I don't think decr [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Fri, 18.07.2008 20:44
And I misread you
. Sorry.
The DSL is for BDD which pla
ces an emphasis on intuitive p
rediction - "equals" is [...]
Fri, 18.07.2008 20:44
And I misread you
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Fri, 18.07.2008 20:17
PHP and Ruby are both general programming languages. The Zen d Framework and Ruby On Rails are both frameworks. I c [...]
Fri, 18.07.2008 20:17
PHP and Ruby are both general programming languages. The Zen d Framework and Ruby On Rails are both frameworks. I c [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Fri, 18.07.2008 20:04
Hi Vincent - == is the PHP equ ality comparison, just as === is for making an identical che ck. Plain old = is just [...]
Fri, 18.07.2008 20:04
Hi Vincent - == is the PHP equ ality comparison, just as === is for making an identical che ck. Plain old = is just [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Fri, 18.07.2008 19:10
Never been one to argue with y ou but you've just gone and co mpared PHP to Ruby which is a very load no no... Th [...]
Fri, 18.07.2008 19:10
Never been one to argue with y ou but you've just gone and co mpared PHP to Ruby which is a very load no no... Th [...]
about A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
Fri, 18.07.2008 18:58
Hmm, why are you using "==" in stead of "equal"?
Fri, 18.07.2008 18:58
Hmm, why are you using "==" in stead of "equal"?
about Google roll out OAuth Authorisation to all Google Data APIs
Wed, 16.07.2008 01:00
Crazy release time hasn't let me check it out again - but th anks for addressing those conc erns. It looks like tha [...]
Wed, 16.07.2008 01:00
Crazy release time hasn't let me check it out again - but th anks for addressing those conc erns. It looks like tha [...]
about Google roll out OAuth Authorisation to all Google Data APIs
Tue, 01.07.2008 12:15
Hi Justin, Zend_Crypt_Hmac is available from the ZF Incub ator repository as it is not y et within Core. It does [...]
Tue, 01.07.2008 12:15
Hi Justin, Zend_Crypt_Hmac is available from the ZF Incub ator repository as it is not y et within Core. It does [...]
about Google roll out OAuth Authorisation to all Google Data APIs
Tue, 01.07.2008 01:41
Hey, I'm trying to test out ba sed on the code you linked - b ut it looks like the Zend_Cryp t_Hmac package is not av [...]
Tue, 01.07.2008 01:41
Hey, I'm trying to test out ba sed on the code you linked - b ut it looks like the Zend_Cryp t_Hmac package is not av [...]
about MIA from Planet PHP
Wed, 25.06.2008 17:21
Yes, I noticed. I haven't re-s ubmitted a request yet though. So they are still aggregating the posts I was refused [...]
Wed, 25.06.2008 17:21
Yes, I noticed. I haven't re-s ubmitted a request yet though. So they are still aggregating the posts I was refused [...]
Categories
Top Referrers
Show tagged entries
application security
astrum futura
bdd
behavior-driven development
behaviour-driven development
design patterns
devnetwork
eve online
games
htmlpurifier
irish php user group
irishisms
maugrim
microformat
mock objects
mvc
oauth
openid
openid and yadis
pc gaming
pear
phing
php
php game development
php games
php general
php security
phpmock
phpspec
phpunit
qgl
quantum game library
quantum star se
rantings
simpletest
solar empire
tdd
tutorial
unit testing
xp programming
xrd
xrds
xri
yadis
yaml
zend framework
zf proposalThe PHPSpec Zend Framework App Testing Manifesto: Preamble
Trackbacks
Padraic Brady's Blog: The PHPSpec Zend Framework App Testing Manifesto: Preamble
Padraic Brady has posted a manifesto of sorts about the work ...
Padraic Brady has posted a manifesto of sorts about the work ...
Weblog: PHPDeveloper.org
Tracked: Jan 14, 15:33
Tracked: Jan 14, 15:33


Saturday, January 12. 2008 at 10:19 (Link) (Reply)
ie. once I do $mailer = Zend_Factory::create('Zend_Mail'); I can no longer auto-complete on $mailer in the IDE. Of course, you "pros" can scoff, but every single dev who works for me relies on autocomplete to remember the whether its setBodyText() or SetTextBody() (or whatever...)
Having said that, the most commonly used classes used in a controller are models that almost certainly either derive directly from Zend_Db_Table or aggregate to it. Zend_Db_Table has a useful static function called SetDefaultDbAdapter() which if you could mock at that level, would be trivial to drop in.
I have a feeling that Zend_Mail works similar with its backend transports too. A quick look shows a setDefaultTransport() static function that almost certainly works the same way.
Regards,
Rob...
Monday, January 14. 2008 at 20:20 (Link) (Reply)
/**
* @var Zend_Mail
*/
$mailer = Zend_Factory::create('Zend_Mail');
... and get autocomplete in Zend Studio and PDT.
Monday, January 14. 2008 at 20:44 (Link) (Reply)
I was talking about wider acceptance by normal developers who don't write or comment on blogs
Regards,
Rob...
Saturday, January 12. 2008 at 12:59 (Link) (Reply)
I know code completion can be great, but I don't subscribe to it as a necessity all the time. Given a choice between autocompletion and better testing access, I'll side with better testing access and invest sometime downloading the Zend Framework manual.
Not sure what you IDE is, but for Eclipse PDT which I'm using it's quite a simple solution. First of all I need to make sure my PHP project's include_path has the path to the framework's location, say "/path/to/zendframework/library". This ensures (as I'm sure you know already, but for the benefit of others) code completion for Zend Framework classes is available since PDT now knows what classes the code will likely include.
Next, there's the questionable choice of making autocomplete-needed variables class properties. The reason is fairly simple. Class properties can be annotated using phpdoc to provide a hint of their type. Using that hint, Eclipse PDT has no problem autocompleting...
The gotcha is the obvious ones. The variable needs to be a class property. If it looks untidy, the class connect can be removed by editing $this->var down to a local $var.
Friday, February 22. 2008 at 15:57 (Reply)