Created
September 27, 2015 02:41
-
-
Save sword-jin/ef91ae557e6cf93fdebb to your computer and use it in GitHub Desktop.
see() 来源
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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