Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (6 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/resizeGd.php

    r41261 r42343  
    1313    /**
    1414     * Use the GD image editor engine
     15     *
    1516     * @var string
    1617     */
     
    2627    /**
    2728     * Try resizing a php file (bad image)
     29     *
    2830     * @ticket 6821
    2931     */
    3032    public function test_resize_bad_image() {
    3133
    32         $image = $this->resize_helper( DIR_TESTDATA.'/export/crazy-cdata.xml', 25, 25 );
     34        $image = $this->resize_helper( DIR_TESTDATA . '/export/crazy-cdata.xml', 25, 25 );
    3335        $this->assertInstanceOf( 'WP_Error', $image );
    3436        $this->assertEquals( 'invalid_image', $image->get_error_code() );
Note: See TracChangeset for help on using the changeset viewer.