Quantcast
Channel: Search Results For: domain:littlehart.net
Browsing all 13 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Tricorder: a testing helper for PHP

I’ve hacked together a little CLI script that I think will be of use to many people who are trying to answer the question “just what should I do to test this thing anyway?” as they learn how to write...

View Article



Image may be NSFW.
Clik here to view.

DIC vs. Service Locator

People often ask me what’s the one thing they could do for their code base RIGHT NOW that will make it easier to test. To me, the answer is simple: make sure you are using Dependency Injection (yes the...

View Article

Image may be NSFW.
Clik here to view.

Monkey-patching is for closers

My co-worker Juan Treminio brought to my attention this interesting blog post by someone advocating monkey-patching strtotime in order to test his code.

View Article

Image may be NSFW.
Clik here to view.

PHPSpec and the new wave of testing

I promised @everzet almost two weeks ago that I would take a look at his latest project, phpspec, and let him know what I think.

View Article

Image may be NSFW.
Clik here to view.

The birth of Grumpy Learning

It’s no secret that I have been pushing my “grumpy programmer” brand hard. Why not? It’s delivering a non-trivial amount of side income for me and I have been really enjoying it.

View Article


Image may be NSFW.
Clik here to view.

So you want to write tests

I often get asked for some advice on how to get started with writing tests for your PHP code. It’s a fair question, since I am presenting myself as an expert-ninja-rockstar-sensei-opinionated-egomaniac...

View Article

Image may be NSFW.
Clik here to view.

You need tests...just not yet

Every once in a while I come across a blog post or a presentation that helps me figure out something that has been bothering but I was having problems articulating. Lately I’ve been struggling to come...

View Article

Image may be NSFW.
Clik here to view.

Standards, soapboxes, and shamans

Programmers often look to external sources for validation of all sorts of things they do. Did they choose the right language? Are they writing good code? Will they be accepted by their peers.

View Article


Image may be NSFW.
Clik here to view.

Testing Smells - try/catch

As part of a project to migrate the PHP code at work from PHP 5.2 to PHP 5.4, I’m using our extensive test suite to look for instances where something that changed between the versions of PHP that we...

View Article


Image may be NSFW.
Clik here to view.

Testing Listener

I had an idea to put together some kind of “PHP Testing Koans” site as a way to help PHP developers get better at learning how to actually write tests. Most developers who are introduced to testing get...

View Article

Image may be NSFW.
Clik here to view.

Data providers and arrays in PHPUnit

I was asked a question on Twitter by Tex Morgan about a problem he was having with PHPUnit data providers. He was trying to pass in some data and kept wondering why PHPUnit was serializing the data...

View Article

Image may be NSFW.
Clik here to view.

The Power of the BrowserProxyMob

At work I have been involved with an effort to put some automated front-end testing in place. The combination of Behat, Mink running tests using PhantomJS is a good one for this. Open source, easy to...

View Article

Image may be NSFW.
Clik here to view.

Test Spies and Mockery

While recording some screencasts I was struggling to figure out how to get PHPUnit’s built-in object mocking tools to allow me to create what is known as a “test spy”. I talk about them briefly in my...

View Article

Browsing all 13 articles
Browse latest View live




Latest Images