Skip to content

Instantly share code, notes, and snippets.

@sword-jin
Created September 27, 2015 02:41
Show Gist options
  • Select an option

  • Save sword-jin/ef91ae557e6cf93fdebb to your computer and use it in GitHub Desktop.

Select an option

Save sword-jin/ef91ae557e6cf93fdebb to your computer and use it in GitHub Desktop.
see() 来源
protected function see($text, $element= 'body')
{
$crawler = $this->client->getCrawler();
$found = $crawler->filter("{$element}:contains('{$text}')");
$this->assertGreaterThan(0, count($found), "Excepted to see {$text} with view");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment