|
From: Marcus B. <ma...@la...> - 2010-12-22 21:06:39
|
Hi...
Christoph Berendes wrote:
> function assertLoginSuccessful($userName, $passWord)
> {
> $this->setField('username',$userName);
> $this->setField('password',$passWord);
> $this->click('Login');
> return $this->assertText('Login successful!');
> }
Try:
return $this->assertText('Login successful! -> %s');
This might be what you need. If not, tell us where this falls down. Also
if you look at the SimpleTest versions, you'll see that it calls another
class to do the line number sniffing. You could add a call to this as
part of assertLoginSuccessful().
yours, Marcus
|