Changeset 39919 for trunk/tests/phpunit/tests/oembed/template.php
- Timestamp:
- 01/17/2017 03:39:36 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/template.php
r36873 r39919 26 26 $doc = new DOMDocument(); 27 27 $this->assertTrue( $doc->loadHTML( $actual ) ); 28 $this->assert True( false ===strpos( $actual, 'That embed can’t be found.' ) );29 $this->assert True( false !==strpos( $actual, 'Hello World' ) );28 $this->assertFalse( strpos( $actual, 'That embed can’t be found.' ) ); 29 $this->assertNotFalse( strpos( $actual, 'Hello World' ) ); 30 30 } 31 31 … … 53 53 $this->assertTrue( $doc->loadHTML( $actual ) ); 54 54 $this->assertFalse( strpos( $actual, 'That embed can’t be found.' ) ); 55 $this->assert True( false !==strpos( $actual, 'Hello World' ) );56 $this->assert True( false !==strpos( $actual, 'canola.jpg' ) );55 $this->assertNotFalse( strpos( $actual, 'Hello World' ) ); 56 $this->assertNotFalse( strpos( $actual, 'canola.jpg' ) ); 57 57 } 58 58 … … 69 69 $doc = new DOMDocument(); 70 70 $this->assertTrue( $doc->loadHTML( $actual ) ); 71 $this->assert True( false !==strpos( $actual, 'That embed can’t be found.' ) );71 $this->assertNotFalse( strpos( $actual, 'That embed can’t be found.' ) ); 72 72 } 73 73 … … 93 93 $this->assertTrue( $doc->loadHTML( $actual ) ); 94 94 $this->assertFalse( strpos( $actual, 'That embed can’t be found.' ) ); 95 $this->assert True( false !==strpos( $actual, 'Hello World' ) );96 $this->assert True( false !==strpos( $actual, 'canola.jpg' ) );95 $this->assertNotFalse( strpos( $actual, 'Hello World' ) ); 96 $this->assertNotFalse( strpos( $actual, 'canola.jpg' ) ); 97 97 } 98 98 … … 115 115 $doc = new DOMDocument(); 116 116 $this->assertTrue( $doc->loadHTML( $actual ) ); 117 $this->assert True( false !==strpos( $actual, 'That embed can’t be found.' ) );117 $this->assertNotFalse( strpos( $actual, 'That embed can’t be found.' ) ); 118 118 } 119 119 … … 137 137 $doc = new DOMDocument(); 138 138 $this->assertTrue( $doc->loadHTML( $actual ) ); 139 $this->assert True( false !==strpos( $actual, 'That embed can’t be found.' ) );139 $this->assertNotFalse( strpos( $actual, 'That embed can’t be found.' ) ); 140 140 } 141 141 … … 158 158 $doc = new DOMDocument(); 159 159 $this->assertTrue( $doc->loadHTML( $actual ) ); 160 $this->assert True( false !==strpos( $actual, 'That embed can’t be found.' ) );160 $this->assertNotFalse( strpos( $actual, 'That embed can’t be found.' ) ); 161 161 } 162 162 … … 183 183 $doc = new DOMDocument(); 184 184 $this->assertTrue( $doc->loadHTML( $actual ) ); 185 $this->assert True( false ===strpos( $actual, 'That embed can’t be found.' ) );186 $this->assert True( false !==strpos( $actual, 'Hello World' ) );185 $this->assertFalse( strpos( $actual, 'That embed can’t be found.' ) ); 186 $this->assertNotFalse( strpos( $actual, 'Hello World' ) ); 187 187 } 188 188
Note: See TracChangeset
for help on using the changeset viewer.