Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46586 r47122  
    1919
    2020    function test_exif_d70() {
    21         // exif from a Nikon D70
     21        // Exif from a Nikon D70.
    2222        $out = wp_read_image_metadata( DIR_TESTDATA . '/images/2004-07-22-DSC_0008.jpg' );
    2323
     
    3535
    3636    function test_exif_d70_mf() {
    37         // exif from a Nikon D70 - manual focus lens, so some data is unavailable
     37        // Exif from a Nikon D70 - manual focus lens, so some data is unavailable.
    3838        $out = wp_read_image_metadata( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG' );
    3939
     
    4545        $this->assertEquals( '', $out['copyright'] );
    4646        $this->assertEquals( 0, $out['focal_length'] );
    47         $this->assertEquals( 0, $out['iso'] ); // interesting - a Nikon bug?
     47        $this->assertEquals( 0, $out['iso'] ); // Interesting - a Nikon bug?
    4848        $this->assertEquals( 1 / 500, $out['shutter_speed'] );
    4949        $this->assertEquals( '', $out['title'] );
    50         #$this->assertEquals(array('Flowers'), $out['keywords']);
     50        // $this->assertEquals( array( 'Flowers' ), $out['keywords'] );
    5151    }
    5252
    5353    function test_exif_d70_iptc() {
    54         // exif from a Nikon D70 with IPTC data added later
     54        // Exif from a Nikon D70 with IPTC data added later.
    5555        $out = wp_read_image_metadata( DIR_TESTDATA . '/images/2004-07-22-DSC_0007.jpg' );
    5656
     
    6868
    6969    function test_exif_fuji() {
    70         // exif from a Fuji FinePix S5600 (thanks Mark)
     70        // Exif from a Fuji FinePix S5600 (thanks Mark).
    7171        $out = wp_read_image_metadata( DIR_TESTDATA . '/images/a2-small.jpg' );
    7272
     
    8888     */
    8989    function test_exif_error() {
    90 
    9190        // https://core.trac.wordpress.org/ticket/6571
    92         // this triggers a warning mesage when reading the exif block
     91        // This triggers a warning mesage when reading the Exif block.
    9392        $out = wp_read_image_metadata( DIR_TESTDATA . '/images/waffles.jpg' );
    9493
     
    106105
    107106    function test_exif_no_data() {
    108         // no exif data in this image (from burningwell.org)
     107        // No Exif data in this image (from burningwell.org).
    109108        $out = wp_read_image_metadata( DIR_TESTDATA . '/images/canola.jpg' );
    110109
     
    125124     */
    126125    function test_utf8_iptc_tags() {
    127 
    128         // trilingual UTF-8 text in the ITPC caption-abstract field
     126        // Trilingual UTF-8 text in the ITPC caption-abstract field.
    129127        $out = wp_read_image_metadata( DIR_TESTDATA . '/images/test-image-iptc.jpg' );
    130128
Note: See TracChangeset for help on using the changeset viewer.