Open Journal Systems  3.3.0
Symfony\Component\HttpFoundation\Tests\JsonResponseTest Class Reference
Inheritance diagram for Symfony\Component\HttpFoundation\Tests\JsonResponseTest:

Public Member Functions

 testConstructorAddsContentTypeHeader ()
 
 testConstructorEmptyCreatesJsonObject ()
 
 testConstructorWithArrayCreatesJsonArray ()
 
 testConstructorWithAssocArrayCreatesJsonObject ()
 
 testConstructorWithCustomContentType ()
 
 testConstructorWithCustomHeaders ()
 
 testConstructorWithCustomStatus ()
 
 testConstructorWithSimpleTypes ()
 
 testCreate ()
 
 testGetEncodingOptions ()
 
 testItAcceptsJsonAsString ()
 
 testJsonEncodeFlags ()
 
 testSetCallback ()
 
 testSetCallbackInvalidIdentifier ()
 
 testSetComplexCallback ()
 
 testSetContent ()
 
 testSetContentJsonSerializeError ()
 
 testSetEncodingOptions ()
 
 testSetJson ()
 
 testStaticCreateAddsContentTypeHeader ()
 
 testStaticCreateEmptyJsonObject ()
 
 testStaticCreateJsonArray ()
 
 testStaticCreateJsonObject ()
 
 testStaticCreateWithCustomContentType ()
 
 testStaticCreateWithCustomHeaders ()
 
 testStaticCreateWithCustomStatus ()
 
 testStaticCreateWithSimpleTypes ()
 

Detailed Description

Definition at line 17 of file JsonResponseTest.php.

Member Function Documentation

◆ testConstructorAddsContentTypeHeader()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorAddsContentTypeHeader ( )

Definition at line 58 of file JsonResponseTest.php.

◆ testConstructorEmptyCreatesJsonObject()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorEmptyCreatesJsonObject ( )

Definition at line 19 of file JsonResponseTest.php.

◆ testConstructorWithArrayCreatesJsonArray()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorWithArrayCreatesJsonArray ( )

Definition at line 25 of file JsonResponseTest.php.

◆ testConstructorWithAssocArrayCreatesJsonObject()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorWithAssocArrayCreatesJsonObject ( )

Definition at line 31 of file JsonResponseTest.php.

◆ testConstructorWithCustomContentType()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorWithCustomContentType ( )

Definition at line 71 of file JsonResponseTest.php.

◆ testConstructorWithCustomHeaders()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorWithCustomHeaders ( )

Definition at line 64 of file JsonResponseTest.php.

◆ testConstructorWithCustomStatus()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorWithCustomStatus ( )

Definition at line 52 of file JsonResponseTest.php.

◆ testConstructorWithSimpleTypes()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testConstructorWithSimpleTypes ( )

Definition at line 37 of file JsonResponseTest.php.

◆ testCreate()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testCreate ( )

◆ testGetEncodingOptions()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testGetEncodingOptions ( )

Definition at line 183 of file JsonResponseTest.php.

◆ testItAcceptsJsonAsString()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testItAcceptsJsonAsString ( )

◆ testJsonEncodeFlags()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testJsonEncodeFlags ( )

Definition at line 176 of file JsonResponseTest.php.

◆ testSetCallback()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetCallback ( )

◆ testSetCallbackInvalidIdentifier()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetCallbackInvalidIdentifier ( )

@expectedException \InvalidArgumentException

Definition at line 211 of file JsonResponseTest.php.

◆ testSetComplexCallback()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetComplexCallback ( )

◆ testSetContent()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetContent ( )

@expectedException \InvalidArgumentException

Definition at line 220 of file JsonResponseTest.php.

References Symfony\Component\HttpFoundation\JsonResponse\create().

◆ testSetContentJsonSerializeError()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetContentJsonSerializeError ( )

@expectedException \Exception @expectedExceptionMessage This error is expected

Definition at line 229 of file JsonResponseTest.php.

References Symfony\Component\HttpFoundation\JsonResponse\create().

◆ testSetEncodingOptions()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetEncodingOptions ( )

Definition at line 190 of file JsonResponseTest.php.

◆ testSetJson()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetJson ( )

Definition at line 79 of file JsonResponseTest.php.

◆ testStaticCreateAddsContentTypeHeader()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateAddsContentTypeHeader ( )

◆ testStaticCreateEmptyJsonObject()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateEmptyJsonObject ( )

◆ testStaticCreateJsonArray()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateJsonArray ( )

◆ testStaticCreateJsonObject()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateJsonObject ( )

◆ testStaticCreateWithCustomContentType()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateWithCustomContentType ( )

◆ testStaticCreateWithCustomHeaders()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateWithCustomHeaders ( )

◆ testStaticCreateWithCustomStatus()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateWithCustomStatus ( )

◆ testStaticCreateWithSimpleTypes()

Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testStaticCreateWithSimpleTypes ( )

The documentation for this class was generated from the following file: