Make WordPress Core

Ticket #35972: 35972.diff

File 35972.diff, 558 bytes (added by borgesbruno, 8 years ago)

Improve code coverage

  • tests/phpunit/tests/functions.php

     
    5151                $this->assertInternalType( 'string', $args['bar'] );
    5252        }
    5353
     54        /**
     55         * @ticket #35972
     56         */
     57        function test_bool_from_yn() {
     58                $this->assertTrue(bool_from_yn('Y'));
     59                $this->assertTrue(bool_from_yn('y'));
     60                $this->assertFalse(bool_from_yn('n'));
     61        }
     62
    5463        function test_size_format() {
    5564                $b  = 1;
    5665                $kb = 1024;