Created
January 25, 2017 10:45
-
-
Save martsie/d9971bac3af977bb9fa1e7edb67b7a4b to your computer and use it in GitHub Desktop.
Example of Drupal SimpleTest assertions
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
<?php | |
// This will fail. | |
$this->assertTrue('foo' == 'bar', 'The two strings are equal to eachother.'); | |
// This will pass. | |
$this->assertTrue('foo' == 'foo', 'The two strings are equal to eachother.'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment