i'm testing a postback page for some web service.
and that web service requires to print text/plain response
if succeed "1"
if fails "0"
and web test assumes page could'n load when i return "0" as string.
i'm putting assert for $this->get or post method. and it returns false if content is just "0"
and i'm using this trick:
this->assertTrue($this->get($url), "Postback page couldn't open");
$source = strip_tags(ob_get_contents());
it would be great to add getSource like method beside showSource.