Menu

## ArrayableTest extends PioniaTestCase
in package

ArrayableTest.php : 8

### Table of Contents

#### Properties

$application : PioniaApplication|null
$arrayable : Arrayable|null
$request : Request|null

#### Methods

applicationMock() : PioniaApplication
createMockContextUser() : ContextUserObject
  This would be mimicking a user we got from our db
createMockSettings() : EnvResolver
requestMock() : Request
  mock a post request
testArrayableChunk() : mixed
testArrayableCreation() : mixed
testArrayableFirst() : mixed
testArrayableFlush() : mixed
testArrayableGet() : mixed
testArrayableHas() : mixed
testArrayableIsArray() : mixed
testArrayableIsCountable() : mixed
testArrayableIsEmpty() : mixed
testArrayableIsFilled() : mixed
testArrayableIsIterable() : mixed
testArrayableIsJsonSerializable() : mixed
testArrayableIsNotEmpty() : mixed
testArrayableIsStringable() : mixed
testArrayableKeysToLowerCase() : mixed
testArrayableKeysToUpperCase() : mixed
testArrayableLast() : mixed
testArrayableOnlyByArray() : mixed
testArrayableOnlyByNullValues() : mixed
testArrayableOnlyByString() : mixed
testArrayableRemove() : mixed
testArrayableReverse() : mixed
testArrayableSlice() : mixed
testArrayableToArrayable() : mixed
testArrayableValuesToLowerCase() : mixed
testArrayAddAfter() : mixed
testArrayAddBefore() : mixed
testArrayPop() : mixed
testArrayReplace() : mixed
testArrayShift() : mixed
testArrayUnshift() : mixed
testArrMapWithKeys() : mixed
testArrWhere() : mixed
testGetJson() : mixed
testGetOrThrow() : mixed
testMerging() : mixed
setUp() : void
tearDown() : void

### Properties

#### $application

PioniaTestCase.php : 21
`public PioniaApplication|null $application = null`

#### $arrayable

ArrayableTest.php : 10
`public Arrayable|null $arrayable`

#### $request

PioniaTestCase.php : 23
`public Request|null $request`

### Methods

#### applicationMock()

PioniaTestCase.php : 60
`public applicationMock() : PioniaApplication`

##### Tags

throws
  Exception

##### Return values

PioniaApplication

#### createMockContextUser()

HelperMocksTrait.php : 15

This would be mimicking a user we got from our db

`public createMockContextUser([ContextUserObject|null $customObj = null ]) : ContextUserObject`

##### Parameters

$customObj : ContextUserObject|null = null

##### Return values

ContextUserObject

#### createMockSettings()

HelperMocksTrait.php : 41
`public createMockSettings() : EnvResolver`

##### Return values

EnvResolver

#### requestMock()

PioniaTestCase.php : 44

mock a post request

`public requestMock([array<string|int, mixed> $data = [] ][, string|null $requestType = 'POST' ][, string|null $url = 'http://localhost:8000/api/v1/' ]) : Request`

##### Parameters

$data : array<string|int, mixed> = []
$requestType : string|null = 'POST'
$url : string|null = 'http://localhost:8000/api/v1/'

##### Return values

Request

#### testArrayableChunk()

ArrayableTest.php : 84
`public testArrayableChunk() : mixed`

#### testArrayableCreation()

ArrayableTest.php : 24
`public testArrayableCreation() : mixed`

#### testArrayableFirst()

ArrayableTest.php : 60
`public testArrayableFirst() : mixed`

#### testArrayableFlush()

ArrayableTest.php : 153
`public testArrayableFlush() : mixed`

#### testArrayableGet()

ArrayableTest.php : 160
`public testArrayableGet() : mixed`

#### testArrayableHas()

ArrayableTest.php : 140
`public testArrayableHas() : mixed`

#### testArrayableIsArray()

ArrayableTest.php : 29
`public testArrayableIsArray() : mixed`

#### testArrayableIsCountable()

ArrayableTest.php : 40
`public testArrayableIsCountable() : mixed`

#### testArrayableIsEmpty()

ArrayableTest.php : 129
`public testArrayableIsEmpty() : mixed`

#### testArrayableIsFilled()

ArrayableTest.php : 218
`public testArrayableIsFilled() : mixed`

#### testArrayableIsIterable()

ArrayableTest.php : 45
`public testArrayableIsIterable() : mixed`

#### testArrayableIsJsonSerializable()

ArrayableTest.php : 50
`public testArrayableIsJsonSerializable() : mixed`

#### testArrayableIsNotEmpty()

ArrayableTest.php : 134
`public testArrayableIsNotEmpty() : mixed`

#### testArrayableIsStringable()

ArrayableTest.php : 55
`public testArrayableIsStringable() : mixed`

#### testArrayableKeysToLowerCase()

ArrayableTest.php : 93
`public testArrayableKeysToLowerCase() : mixed`

#### testArrayableKeysToUpperCase()

ArrayableTest.php : 102
`public testArrayableKeysToUpperCase() : mixed`

#### testArrayableLast()

ArrayableTest.php : 67
`public testArrayableLast() : mixed`

#### testArrayableOnlyByArray()

ArrayableTest.php : 224
`public testArrayableOnlyByArray() : mixed`

#### testArrayableOnlyByNullValues()

ArrayableTest.php : 237
`public testArrayableOnlyByNullValues() : mixed`

#### testArrayableOnlyByString()

ArrayableTest.php : 231
`public testArrayableOnlyByString() : mixed`

#### testArrayableRemove()

ArrayableTest.php : 146
`public testArrayableRemove() : mixed`

#### testArrayableReverse()

ArrayableTest.php : 120
`public testArrayableReverse() : mixed`

#### testArrayableSlice()

ArrayableTest.php : 75
`public testArrayableSlice() : mixed`

#### testArrayableToArrayable()

ArrayableTest.php : 212
`public testArrayableToArrayable() : mixed`

#### testArrayableValuesToLowerCase()

ArrayableTest.php : 111
`public testArrayableValuesToLowerCase() : mixed`

#### testArrayAddAfter()

ArrayableTest.php : 174
`public testArrayAddAfter() : mixed`

#### testArrayAddBefore()

ArrayableTest.php : 166
`public testArrayAddBefore() : mixed`

#### testArrayPop()

ArrayableTest.php : 197
`public testArrayPop() : mixed`

#### testArrayReplace()

ArrayableTest.php : 205
`public testArrayReplace() : mixed`

#### testArrayShift()

ArrayableTest.php : 182
`public testArrayShift() : mixed`

#### testArrayUnshift()

ArrayableTest.php : 190
`public testArrayUnshift() : mixed`

#### testArrMapWithKeys()

ArrayableTest.php : 274
`public testArrMapWithKeys() : mixed`

#### testArrWhere()

ArrayableTest.php : 244
`public testArrWhere() : mixed`

#### testGetJson()

ArrayableTest.php : 313
`public testGetJson() : mixed`

#### testGetOrThrow()

ArrayableTest.php : 301
`public testGetOrThrow() : mixed`

#### testMerging()

ArrayableTest.php : 34
`public testMerging() : mixed`

#### setUp()

ArrayableTest.php : 12
`protected setUp() : void`

#### tearDown()

ArrayableTest.php : 18
`protected tearDown() : void`

## Search results