|
From: Marcus B. <ma...@wo...> - 2009-03-15 14:28:15
|
Hi...
Gabor Szabo wrote:
> $this->assertTrue($this->get($url));
> $this->assertTrue($this->click('Add'));
>
> are there helper method such as assertGet and assertClick that will replace
> the need for the above or are there plans to add those?
You don't really need this, as simply asserting text on the next page in
the first test should be enough. These rarely fail, and if they do the
problem is not with your code, but with the infrastructure. Write a
separate test for infrastructure (a short one), run that first and then
assume everything works until proven otherwise.
As for changing this in the future, failures will throw exceptions. This
way, if you want to emulate a failure...
$this->expectException('NotClickable');
$this->click('Not shown on this page');
This is all stuff for the PHP only rewrite that will probably take all year.
>
> Gabor
yours, Marcus
|