platform/api/laravel/Testing/Fluent/Concerns/Has.yaml

129 lines
2.2 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: Has
class_comment: null
dependencies:
- name: Closure
type: class
source: Closure
- name: Arr
type: class
source: Illuminate\Support\Arr
- name: PHPUnit
type: class
source: PHPUnit\Framework\Assert
properties: []
methods:
- name: count
visibility: public
parameters:
- name: key
- name: length
default: 'null'
comment: '# * Assert that the prop is of the expected size.
# *
# * @param string|int $key
# * @param int|null $length
# * @return $this'
- name: has
visibility: public
parameters:
- name: key
- name: length
default: 'null'
- name: callback
default: 'null'
comment: '# * Ensure that the given prop exists.
# *
# * @param string|int $key
# * @param int|\Closure|null $length
# * @param \Closure|null $callback
# * @return $this'
- name: hasAll
visibility: public
parameters:
- name: key
comment: '# * Assert that all of the given props exist.
# *
# * @param array|string $key
# * @return $this'
- name: hasAny
visibility: public
parameters:
- name: key
comment: '# * Assert that at least one of the given props exists.
# *
# * @param array|string $key
# * @return $this'
- name: missingAll
visibility: public
parameters:
- name: key
comment: '# * Assert that none of the given props exist.
# *
# * @param array|string $key
# * @return $this'
- name: missing
visibility: public
parameters:
- name: key
comment: '# * Assert that the given prop does not exist.
# *
# * @param string $key
# * @return $this'
- name: dotPath
visibility: protected
parameters:
- name: key
default: ''''''
comment: null
- name: interactsWith
visibility: protected
parameters:
- name: key
comment: null
- name: prop
visibility: protected
parameters:
- name: key
default: 'null'
comment: null
- name: scope
visibility: protected
parameters:
- name: key
- name: callback
comment: null
- name: etc
visibility: public
parameters: []
comment: null
- name: first
visibility: public
parameters:
- name: callback
comment: null
traits:
- Closure
- Illuminate\Support\Arr
interfaces: []