Changeset 51451 for trunk/tests/phpunit/tests/oembed/template.php
- Timestamp:
- 07/17/2021 10:36:52 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/template.php
r50441 r51451 33 33 $doc = new DOMDocument(); 34 34 $this->assertTrue( $doc->loadHTML( $actual ) ); 35 $this->assert False( strpos( $actual, 'That embed can’t be found.' ));36 $this->assert NotFalse( strpos( $actual, 'Hello World' ));35 $this->assertStringNotContainsString( 'That embed can’t be found.', $actual ); 36 $this->assertStringContainsString( 'Hello World', $actual ); 37 37 } 38 38 … … 65 65 $doc = new DOMDocument(); 66 66 $this->assertTrue( $doc->loadHTML( $actual ) ); 67 $this->assert False( strpos( $actual, 'That embed can’t be found.' ));68 $this->assert NotFalse( strpos( $actual, 'Hello World' ));69 $this->assert NotFalse( strpos( $actual, 'canola.jpg' ));67 $this->assertStringNotContainsString( 'That embed can’t be found.', $actual ); 68 $this->assertStringContainsString( 'Hello World', $actual ); 69 $this->assertStringContainsString( 'canola.jpg', $actual ); 70 70 } 71 71 … … 82 82 $doc = new DOMDocument(); 83 83 $this->assertTrue( $doc->loadHTML( $actual ) ); 84 $this->assert NotFalse( strpos( $actual, 'That embed can’t be found.' ));84 $this->assertStringContainsString( 'That embed can’t be found.', $actual ); 85 85 } 86 86 … … 109 109 $doc = new DOMDocument(); 110 110 $this->assertTrue( $doc->loadHTML( $actual ) ); 111 $this->assert False( strpos( $actual, 'That embed can’t be found.' ));112 $this->assert NotFalse( strpos( $actual, 'Hello World' ));113 $this->assert NotFalse( strpos( $actual, 'canola.jpg' ));111 $this->assertStringNotContainsString( 'That embed can’t be found.', $actual ); 112 $this->assertStringContainsString( 'Hello World', $actual ); 113 $this->assertStringContainsString( 'canola.jpg', $actual ); 114 114 } 115 115 … … 134 134 $doc = new DOMDocument(); 135 135 $this->assertTrue( $doc->loadHTML( $actual ) ); 136 $this->assert NotFalse( strpos( $actual, 'That embed can’t be found.' ));136 $this->assertStringContainsString( 'That embed can’t be found.', $actual ); 137 137 } 138 138 … … 158 158 $doc = new DOMDocument(); 159 159 $this->assertTrue( $doc->loadHTML( $actual ) ); 160 $this->assert NotFalse( strpos( $actual, 'That embed can’t be found.' ));160 $this->assertStringContainsString( 'That embed can’t be found.', $actual ); 161 161 } 162 162 … … 181 181 $doc = new DOMDocument(); 182 182 $this->assertTrue( $doc->loadHTML( $actual ) ); 183 $this->assert NotFalse( strpos( $actual, 'That embed can’t be found.' ));183 $this->assertStringContainsString( 'That embed can’t be found.', $actual ); 184 184 } 185 185 … … 208 208 $doc = new DOMDocument(); 209 209 $this->assertTrue( $doc->loadHTML( $actual ) ); 210 $this->assert False( strpos( $actual, 'That embed can’t be found.' ));211 $this->assert NotFalse( strpos( $actual, 'Hello World' ));210 $this->assertStringNotContainsString( 'That embed can’t be found.', $actual ); 211 $this->assertStringContainsString( 'Hello World', $actual ); 212 212 } 213 213
Note: See TracChangeset
for help on using the changeset viewer.