Changeset 48937 for trunk/tests/phpunit/tests/image/editorImagick.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/editorImagick.php
r47198 r48937 55 55 $imagick_image_editor->resize( 100, 50 ); 56 56 57 $this->assert Equals(57 $this->assertSame( 58 58 array( 59 59 'width' => 75, … … 92 92 ); 93 93 94 $this->assert Equals( $expected_array, $resized );94 $this->assertSame( $expected_array, $resized ); 95 95 96 96 // Now, verify real dimensions are as expected. … … 364 364 365 365 $this->assertNotNull( $resized ); 366 $this->assert Equals( $expected_array, $resized );366 $this->assertSame( $expected_array, $resized ); 367 367 368 368 foreach ( $resized as $key => $image_data ) { … … 389 389 $imagick_image_editor->resize( 100, 50, true ); 390 390 391 $this->assert Equals(391 $this->assertSame( 392 392 array( 393 393 'width' => 100, … … 409 409 $imagick_image_editor->crop( 0, 0, 50, 50 ); 410 410 411 $this->assert Equals(411 $this->assertSame( 412 412 array( 413 413 'width' => 50, … … 434 434 $imagick_image_editor->rotate( 180 ); 435 435 436 $this->assert Equals( $color_top_left, $property->getValue( $imagick_image_editor )->getImagePixelColor( 99, 99 )->getColor() );436 $this->assertSame( $color_top_left, $property->getValue( $imagick_image_editor )->getImagePixelColor( 99, 99 )->getColor() ); 437 437 } 438 438 … … 453 453 $imagick_image_editor->flip( true, false ); 454 454 455 $this->assert Equals( $color_top_left, $property->getValue( $imagick_image_editor )->getImagePixelColor( 0, 99 )->getColor() );455 $this->assertSame( $color_top_left, $property->getValue( $imagick_image_editor )->getImagePixelColor( 0, 99 )->getColor() ); 456 456 } 457 457 … … 559 559 560 560 // The orientation value 3 is equivalent to rotated upside down (180 degrees). 561 $this->assert Equals( 3, intval( $data['orientation'] ), 'Orientation value read from does not match image file Exif data: ' . $file );561 $this->assertSame( 3, intval( $data['orientation'] ), 'Orientation value read from does not match image file Exif data: ' . $file ); 562 562 563 563 $temp_file = wp_tempnam( $file ); … … 571 571 572 572 // Make sure the image is no longer in The Upside Down Exif orientation. 573 $this->assert Equals( 1, intval( $data['orientation'] ), 'Orientation Exif data was not updated after rotating image: ' . $file );573 $this->assertSame( 1, intval( $data['orientation'] ), 'Orientation Exif data was not updated after rotating image: ' . $file ); 574 574 575 575 // Remove both the generated file ending in .tmp and tmp.jpg due to wp_tempnam().
Note: See TracChangeset
for help on using the changeset viewer.