summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoshe Weitzman2011-07-19 04:03:20 (GMT)
committerMoshe Weitzman2011-07-19 04:03:34 (GMT)
commit54079474b5cc10ce97e565f74002f979b3713296 (patch)
treeb2cd5e84e45f10d4e53cb76d5cbc010d870d77cc
parente56389fec335ea3a907d3b4f620cf987d1898af5 (diff)
Simplify assertions in Drush tests.
-rw-r--r--develDrushTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/develDrushTest.php b/develDrushTest.php
index 937a619..11e54ca 100644
--- a/develDrushTest.php
+++ b/develDrushTest.php
@@ -19,7 +19,7 @@ class develCase extends Drush_CommandTestCase {
$this->drush('fn-view', array('drush_main'), $options);
$output = $this->getOutput();
- $this->assertTrue((bool)strpos($output, '@return'), 'Output contain @return Doxygen.');
- $this->assertTrue((bool)strpos($output, 'function drush_main() {'), 'Output contains function drush_main() declaration');
+ $this->assertContains('@return', $output, 'Output contain @return Doxygen.');
+ $this->assertContains('function drush_main() {', $output, 'Output contains function drush_main() declaration');
}
} \ No newline at end of file