]> git.mxchange.org Git - friendica.git/commitdiff
try assertContains
authorfriendica <info@friendica.com>
Sat, 7 Apr 2012 09:21:55 +0000 (02:21 -0700)
committerfriendica <info@friendica.com>
Sat, 7 Apr 2012 09:21:55 +0000 (02:21 -0700)
tests/get_tags_test.php

index 68b43231b833ea0289c117bd028716ee48969d4f..f1e4f76b0a98733ce3afe7ba895b7d5c48df84e2 100644 (file)
@@ -264,7 +264,7 @@ class GetTagsTest extends PHPUnit_Framework_TestCase {
                $this->assertEquals("Test with @[url=http://justatest.de]Mike Lastname[/url] id tag", $text);\r
                $this->assertEquals("@[url=http://justatest.de]Mike Lastname[/url]", $str_tags);\r
                // this test may produce two cid:15 entries - which is OK because duplicates are pruned before delivery
-               $this->assertTrue(strstr($inform,"cid:15"));
+               $this->assertContains($inform,"cid:15");
        }
        
        /**