Open Journal Systems  3.3.0
Guzzle\Tests\Common\CollectionTest Class Reference
Inheritance diagram for Guzzle\Tests\Common\CollectionTest:
Guzzle\Tests\GuzzleTestCase

Public Member Functions

 dataProvider ()
 
 falseyDataProvider ()
 
 getPathProvider ()
 
 testAddParamsByMerging ()
 
 testAllowsFunctionalFilter ()
 
 testAllowsFunctionalMapping ()
 
 testCanAddValuesToExistingKeysByUsingArray ()
 
 testCanClearAllDataOrSpecificKeys ()
 
 testCanGetAllValuesByArray ()
 
 testCanReplaceAllData ()
 
 testCanSearchByKey ()
 
 testCanSetNestedPathValueThatDoesNotExist ()
 
 testCanSetNestedPathValueThatExists ()
 
 testChecksIfHasKey ()
 
 testChecksIfHasValue ()
 
 testConstructorCanBeCalledWithNoParams ()
 
 testConstructorCanBeCalledWithParams ()
 
 testFalseyKeysStillDescend ()
 
 testGetPath (Collection $c, $path, $expected, $separator='/')
 
 testGetsValuesByKey ()
 
 testHandlesMergingInDisparateDataSources ()
 
 testImplementsArrayAccess ()
 
 testImplementsCount ()
 
 testImplementsIteratorAggregate ()
 
 testInjectsConfigData ($output, $input, $config)
 
 testOverridesSettings ()
 
 testOverwriteWithCollection ()
 
 testOverwriteWithTraversable ()
 
 testPreparesFromConfig ()
 
 testProvidesKeys ()
 
 testRetrievesNestedKeysUsingPath ()
 
 testReturnsCorrectData ($a, $b)
 
 testUsesStaticWhenCreatingNew ()
 
 testVerifiesNestedPathIsValidAtExactLevel ()
 
 testVerifiesThatNestedPathIsValidAtAnyLevel ()
 
- Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 addMockedRequest (RequestInterface $request)
 
 assertContainsIns ($needle, $haystack, $message=null)
 
 compareHeaders ($filteredHeaders, $actualHeaders)
 
 getMockedRequests ()
 
 getMockResponse ($path)
 
 getWildcardObserver (HasDispatcherInterface $hasDispatcher)
 
 setMockResponse (Client $client, $paths)
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from Guzzle\Tests\GuzzleTestCase
 hasSubscriber (HasDispatcherInterface $dispatcher, EventSubscriberInterface $subscriber)
 

Protected Attributes

 $coll
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Tests\GuzzleTestCase
static getServer ()
 
static getServiceBuilder ()
 
static setMockBasePath ($path)
 
static setServiceBuilder (ServiceBuilderInterface $builder)
 
- Data Fields inherited from Guzzle\Tests\GuzzleTestCase
 $mockObserver
 
- Static Public Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $server
 
static $serviceBuilder
 
- Static Protected Attributes inherited from Guzzle\Tests\GuzzleTestCase
static $mockBasePath
 

Detailed Description

See also
Guzzle\Common\Collection

Definition at line 12 of file CollectionTest.php.

Member Function Documentation

◆ dataProvider()

Guzzle\Tests\Common\CollectionTest::dataProvider ( )

Definition at line 291 of file CollectionTest.php.

◆ falseyDataProvider()

Guzzle\Tests\Common\CollectionTest::falseyDataProvider ( )

Definition at line 358 of file CollectionTest.php.

◆ getPathProvider()

Guzzle\Tests\Common\CollectionTest::getPathProvider ( )

Definition at line 407 of file CollectionTest.php.

◆ setUp()

Guzzle\Tests\Common\CollectionTest::setUp ( )
protected

Definition at line 20 of file CollectionTest.php.

◆ testAddParamsByMerging()

Guzzle\Tests\Common\CollectionTest::testAddParamsByMerging ( )

Definition at line 181 of file CollectionTest.php.

◆ testAllowsFunctionalFilter()

Guzzle\Tests\Common\CollectionTest::testAllowsFunctionalFilter ( )

Definition at line 206 of file CollectionTest.php.

◆ testAllowsFunctionalMapping()

Guzzle\Tests\Common\CollectionTest::testAllowsFunctionalMapping ( )

Definition at line 227 of file CollectionTest.php.

◆ testCanAddValuesToExistingKeysByUsingArray()

Guzzle\Tests\Common\CollectionTest::testCanAddValuesToExistingKeysByUsingArray ( )

Definition at line 57 of file CollectionTest.php.

◆ testCanClearAllDataOrSpecificKeys()

Guzzle\Tests\Common\CollectionTest::testCanClearAllDataOrSpecificKeys ( )

Definition at line 81 of file CollectionTest.php.

◆ testCanGetAllValuesByArray()

Guzzle\Tests\Common\CollectionTest::testCanGetAllValuesByArray ( )

Definition at line 153 of file CollectionTest.php.

◆ testCanReplaceAllData()

Guzzle\Tests\Common\CollectionTest::testCanReplaceAllData ( )

Definition at line 280 of file CollectionTest.php.

◆ testCanSearchByKey()

Guzzle\Tests\Common\CollectionTest::testCanSearchByKey ( )

Definition at line 322 of file CollectionTest.php.

◆ testCanSetNestedPathValueThatDoesNotExist()

Guzzle\Tests\Common\CollectionTest::testCanSetNestedPathValueThatDoesNotExist ( )

Definition at line 500 of file CollectionTest.php.

◆ testCanSetNestedPathValueThatExists()

Guzzle\Tests\Common\CollectionTest::testCanSetNestedPathValueThatExists ( )

Definition at line 507 of file CollectionTest.php.

◆ testChecksIfHasKey()

Guzzle\Tests\Common\CollectionTest::testChecksIfHasKey ( )

Definition at line 130 of file CollectionTest.php.

◆ testChecksIfHasValue()

Guzzle\Tests\Common\CollectionTest::testChecksIfHasValue ( )

Definition at line 142 of file CollectionTest.php.

◆ testConstructorCanBeCalledWithNoParams()

Guzzle\Tests\Common\CollectionTest::testConstructorCanBeCalledWithNoParams ( )

Definition at line 25 of file CollectionTest.php.

◆ testConstructorCanBeCalledWithParams()

Guzzle\Tests\Common\CollectionTest::testConstructorCanBeCalledWithParams ( )

Definition at line 32 of file CollectionTest.php.

◆ testFalseyKeysStillDescend()

Guzzle\Tests\Common\CollectionTest::testFalseyKeysStillDescend ( )

Definition at line 395 of file CollectionTest.php.

◆ testGetPath()

Guzzle\Tests\Common\CollectionTest::testGetPath ( Collection  $c,
  $path,
  $expected,
  $separator = '/' 
)

@dataProvider getPathProvider

Definition at line 472 of file CollectionTest.php.

◆ testGetsValuesByKey()

Guzzle\Tests\Common\CollectionTest::testGetsValuesByKey ( )

Definition at line 101 of file CollectionTest.php.

◆ testHandlesMergingInDisparateDataSources()

Guzzle\Tests\Common\CollectionTest::testHandlesMergingInDisparateDataSources ( )

Definition at line 67 of file CollectionTest.php.

◆ testImplementsArrayAccess()

Guzzle\Tests\Common\CollectionTest::testImplementsArrayAccess ( )

Definition at line 248 of file CollectionTest.php.

◆ testImplementsCount()

Guzzle\Tests\Common\CollectionTest::testImplementsCount ( )

Definition at line 169 of file CollectionTest.php.

◆ testImplementsIteratorAggregate()

Guzzle\Tests\Common\CollectionTest::testImplementsIteratorAggregate ( )

Definition at line 43 of file CollectionTest.php.

◆ testInjectsConfigData()

Guzzle\Tests\Common\CollectionTest::testInjectsConfigData (   $output,
  $input,
  $config 
)

@dataProvider dataProvider

Definition at line 316 of file CollectionTest.php.

◆ testOverridesSettings()

Guzzle\Tests\Common\CollectionTest::testOverridesSettings ( )

Definition at line 477 of file CollectionTest.php.

◆ testOverwriteWithCollection()

Guzzle\Tests\Common\CollectionTest::testOverwriteWithCollection ( )

Definition at line 484 of file CollectionTest.php.

◆ testOverwriteWithTraversable()

Guzzle\Tests\Common\CollectionTest::testOverwriteWithTraversable ( )

Definition at line 492 of file CollectionTest.php.

◆ testPreparesFromConfig()

Guzzle\Tests\Common\CollectionTest::testPreparesFromConfig ( )

Definition at line 334 of file CollectionTest.php.

References Guzzle\Common\Collection\fromConfig().

◆ testProvidesKeys()

Guzzle\Tests\Common\CollectionTest::testProvidesKeys ( )

Definition at line 114 of file CollectionTest.php.

◆ testRetrievesNestedKeysUsingPath()

Guzzle\Tests\Common\CollectionTest::testRetrievesNestedKeysUsingPath ( )

Definition at line 378 of file CollectionTest.php.

◆ testReturnsCorrectData()

Guzzle\Tests\Common\CollectionTest::testReturnsCorrectData (   $a,
  $b 
)

@dataProvider falseyDataProvider

Definition at line 372 of file CollectionTest.php.

◆ testUsesStaticWhenCreatingNew()

Guzzle\Tests\Common\CollectionTest::testUsesStaticWhenCreatingNew ( )

Definition at line 266 of file CollectionTest.php.

◆ testVerifiesNestedPathIsValidAtExactLevel()

Guzzle\Tests\Common\CollectionTest::testVerifiesNestedPathIsValidAtExactLevel ( )

@expectedException \Guzzle\Common\Exception\RuntimeException

Definition at line 517 of file CollectionTest.php.

◆ testVerifiesThatNestedPathIsValidAtAnyLevel()

Guzzle\Tests\Common\CollectionTest::testVerifiesThatNestedPathIsValidAtAnyLevel ( )

@expectedException \Guzzle\Common\Exception\RuntimeException

Definition at line 527 of file CollectionTest.php.

Field Documentation

◆ $coll

Collection Guzzle\Tests\Common\CollectionTest::$coll
protected

Definition at line 18 of file CollectionTest.php.


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