Now I can do test-driven maintenance.
I just added this code to confirm that the B0/B1 title was correct:
$this->assertSame('SlackerTalk Alpha', $crawler->filter('head > title')->eq(0)->html(), 'Unexpected title');
Now I can come up with a test for B2, and then set it to expect a *different* title, and one button will tell me if it's working or not.
And next month, and the month after, and the month after, it'll continue to automatically ensure that I haven't fucked it up.
|