Changeset 48937 for trunk/tests/phpunit/tests/general/paginateLinks.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/paginateLinks.php
r47122 r48937 26 26 27 27 $links = paginate_links( array( 'total' => 50 ) ); 28 $this->assert EqualsIgnoreEOL( $expected, $links );28 $this->assertSameIgnoreEOL( $expected, $links ); 29 29 } 30 30 … … 49 49 ) 50 50 ); 51 $this->assert EqualsIgnoreEOL( $expected, $links );51 $this->assertSameIgnoreEOL( $expected, $links ); 52 52 } 53 53 … … 74 74 ) 75 75 ); 76 $this->assert EqualsIgnoreEOL( $expected, $links );76 $this->assertSameIgnoreEOL( $expected, $links ); 77 77 } 78 78 … … 101 101 ) 102 102 ); 103 $this->assert EqualsIgnoreEOL( $expected, $links );103 $this->assertSameIgnoreEOL( $expected, $links ); 104 104 } 105 105 … … 126 126 // The links should be: 127 127 // < Previous 1 ... 49 50 51 ... 100 Next > 128 $this->assert Equals( 5, $this->i18n_count );128 $this->assertSame( 5, $this->i18n_count ); 129 129 remove_filter( 'number_format_i18n', array( $this, 'increment_i18n_count' ) ); 130 130 } … … 171 171 $class = $tag->attributes->getNamedItem( 'class' )->value; 172 172 173 $this->assert Equals( $attributes['href'], $href );174 $this->assert Equals( $attributes['class'], $class );173 $this->assertSame( $attributes['href'], $href ); 174 $this->assertSame( $attributes['class'], $class ); 175 175 } 176 176 … … 191 191 192 192 $class = $tag->attributes->getNamedItem( 'class' )->value; 193 $this->assert Equals( 'page-numbers current', $class );193 $this->assertSame( 'page-numbers current', $class ); 194 194 195 195 $document->loadHTML( $links[1] ); … … 198 198 199 199 $href = $tag->attributes->getNamedItem( 'href' )->value; 200 $this->assert Equals( get_pagenum_link( 2 ), $href );200 $this->assertSame( get_pagenum_link( 2 ), $href ); 201 201 } 202 202 … … 245 245 246 246 $href = $tag->attributes->getNamedItem( 'href' )->value; 247 $this->assert Equals( $expected_href, $href );247 $this->assertSame( $expected_href, $href ); 248 248 } 249 249 } … … 285 285 286 286 $href = $tag->attributes->getNamedItem( 'href' )->value; 287 $this->assert Equals( $expected_href, $href );287 $this->assertSame( $expected_href, $href ); 288 288 } 289 289 }
Note: See TracChangeset
for help on using the changeset viewer.