tests/Http/Query/BaseQueryParserTest.php
/**
     * That's a special case to test possible issues with `empty` function which thinks "0" is an empty string.
     */
That's a special case to test possible issues with `empty` function which thinks "0" is an empty string.
That ' s a special case to test possible issues with ` empty ` function which thinks " 0 " is an empty string .
public function testIncludesForStringWithZeroes1(): void
    {
        $queryParameters = [
            BaseQueryParser::PARAM_INCLUDE => '0',
        ];
        $parser = $this->createParser($queryParameters);
        self::assertEquals(
            [
                '0' => ['0'],
            ],
            $this->iterableToArray($parser->getIncludes())
        );
    }
public function testIncludesForStringWithZeroes1 ( ) : void { $ queryParameters = [ BaseQueryParser :: PARAM_INCLUDE => '0' , ] ; $ parser = $ this -> createParser ( $ queryParameters ) ; self :: assertEquals ( [ '0' => [ '0' ] , ] , $ this -> iterableToArray ( $ parser -> getIncludes ( ) ) ) ; }
That's a special case to test possible issues with `empty` function which thinks "0" is an empty string.
That ' s a special case to test possible issues with ` empty ` function which thinks " 0 " is an empty string .