Long time web application programmer, now working for a social commerce company.

Nov
19
awarded Popular Question
Aug
17
awarded Popular Question
Jul
2
awarded Curious
Feb
10
awarded Famous Question
Jan
22
awarded Notable Question
Feb
24
comment Testing a method which completely uses another objects methods
(Hossein asked me to comment about this on twitter) I think Bram covered everything I would've brought up, except for the decision on whether this is best done as a unit test (meaning you will have to mock all your dependencies) or as in integration test (meaning you will need a dedicated testing database and clean up after your tests) I am not a big fan of integration tests (you end up duplicating a lot of unit testing code) so my preference is to write extensive unit tests and then acceptance tests for the app itself using things like Behat.
Sep
25
awarded Nice Question
Aug
22
answered WordPress plugin testing unit test or acceptance test or both
Aug
20
comment Running PHP script in background using Ant
Hey Lloyd, thanks for the suggestion. One of the potential problems here is that I can't really alter the worker script. I'm using Behat (a BDD tool for PHP) and they have an extension for allowing you to run it as a Gearman worker. Not very transparent, I know, but extremely limiting in what I can do without heavy modification to the script itself
Aug
20
comment Running PHP script in background using Ant
Fair enough, but switching to Beanstall (or anything else) is not possible at this point. ;)
Aug
20
comment Running PHP script in background using Ant
Sure, it could happen that more than build is running at a time. Gearman should be able to handle it AFAICT
Aug
20
comment Running PHP script in background using Ant
I do not need to capture the output from these scripts, but they need to be stopped once the build is over. It's for running Behat tests in parallel using Gearman, and I do not have any sort of access on the server it will be running on to start them up, leave them running, and restart if they crash (for whatever reason).
Aug
20
asked Running PHP script in background using Ant
Feb
17
accepted User authentication in Knockout.js applications
Feb
17
comment User authentication in Knockout.js applications
That makes a lot of sense to me. Thanks for taking the time to expand your thoughts!
Feb
17
comment User authentication in Knockout.js applications
Can you expand on that? Not quite sure I understand what you're getting at. There are actions in this app that you need to be authenticated in order to do, so how else do you determine if the current user can do them if you don't store the fact they are authenticated somewhere?
Feb
17
revised User authentication in Knockout.js applications
Trying to get more specific about my question
Feb
17
asked User authentication in Knockout.js applications
Jan
17
accepted PHPUnit reporting "Aborted" no matter what tests are run
Jan
9
awarded Talkative
1 2 3 4 5