platform/api/symfony/Component/HttpFoundation/Tests/CookieTest.yaml

146 lines
3.5 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: CookieTest
class_comment: '# * CookieTest.
# *
# * @author John Kary <john@johnkary.net>
# * @author Hugo Hamon <hugo.hamon@sensio.com>
# *
# * @group time-sensitive'
dependencies:
- name: TestCase
type: class
source: PHPUnit\Framework\TestCase
- name: Cookie
type: class
source: Symfony\Component\HttpFoundation\Cookie
properties: []
methods:
- name: testInstantiationThrowsExceptionIfRawCookieNameContainsSpecialCharacters
visibility: public
parameters:
- name: name
comment: "# * CookieTest.\n# *\n# * @author John Kary <john@johnkary.net>\n# * @author\
\ Hugo Hamon <hugo.hamon@sensio.com>\n# *\n# * @group time-sensitive\n# */\n#\
\ class CookieTest extends TestCase\n# {\n# public static function namesWithSpecialCharacters()\n\
# {\n# return [\n# [',MyName'],\n# [';MyName'],\n# [' MyName'],\n# [\"\\tMyName\"\
],\n# [\"\\rMyName\"],\n# [\"\\nMyName\"],\n# [\"\\013MyName\"],\n# [\"\\014MyName\"\
],\n# ];\n# }\n# \n# /**\n# * @dataProvider namesWithSpecialCharacters"
- name: testWithRawThrowsExceptionIfCookieNameContainsSpecialCharacters
visibility: public
parameters:
- name: name
comment: '# * @dataProvider namesWithSpecialCharacters'
- name: testInstantiationSucceedNonRawCookieNameContainsSpecialCharacters
visibility: public
parameters:
- name: name
comment: '# * @dataProvider namesWithSpecialCharacters'
- name: testInstantiationThrowsExceptionIfCookieNameIsEmpty
visibility: public
parameters: []
comment: null
- name: testInvalidExpiration
visibility: public
parameters: []
comment: null
- name: testNegativeExpirationIsNotPossible
visibility: public
parameters: []
comment: null
- name: testMinimalParameters
visibility: public
parameters: []
comment: null
- name: testGetValue
visibility: public
parameters: []
comment: null
- name: testGetPath
visibility: public
parameters: []
comment: null
- name: testGetExpiresTime
visibility: public
parameters: []
comment: null
- name: testConstructorWithDateTime
visibility: public
parameters: []
comment: null
- name: testConstructorWithDateTimeImmutable
visibility: public
parameters: []
comment: null
- name: testGetExpiresTimeWithStringValue
visibility: public
parameters: []
comment: null
- name: testGetDomain
visibility: public
parameters: []
comment: null
- name: testIsSecure
visibility: public
parameters: []
comment: null
- name: testIsHttpOnly
visibility: public
parameters: []
comment: null
- name: testIsPartitioned
visibility: public
parameters: []
comment: null
- name: testCookieIsNotCleared
visibility: public
parameters: []
comment: null
- name: testCookieIsCleared
visibility: public
parameters: []
comment: null
- name: testToString
visibility: public
parameters: []
comment: null
- name: testRawCookie
visibility: public
parameters: []
comment: null
- name: testGetMaxAge
visibility: public
parameters: []
comment: null
- name: testFromString
visibility: public
parameters: []
comment: null
- name: testFromStringWithHttpOnly
visibility: public
parameters: []
comment: null
- name: testSameSiteAttribute
visibility: public
parameters: []
comment: null
- name: testSetSecureDefault
visibility: public
parameters: []
comment: null
- name: testMaxAge
visibility: public
parameters: []
comment: null
- name: testExpiredWithMaxAge
visibility: public
parameters: []
comment: null
traits:
- PHPUnit\Framework\TestCase
- Symfony\Component\HttpFoundation\Cookie
interfaces: []