trait
Illuminate
/
Testing
/
Fluent
/
Concerns
/
Matching
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Matching
Methods
public
where ( string $key , $expected ) : $this
Asserts that the property matches the expected value.
Parameters
- $key string
- $expected mixed|Closure
public
whereAll ( array $bindings ) : $this
Asserts that all properties match their expected values.
Parameters
- $bindings array
public
whereType ( string $key , $expected ) : $this
Asserts that the property is of the expected type.
Parameters
- $key string
- $expected string|array
public
whereAllType ( array $bindings ) : $this
Asserts that all properties are of their expected types.
Parameters
- $bindings array
public
whereContains ( string $key , $expected ) : $this
Asserts that the property contains the expected values.
Parameters
- $key string
- $expected mixed
protected
ensureSorted ( $value ) : void
Ensures that all properties are sorted the same way, recursively.
Parameters
- $value mixed
protected
abstract
dotPath ( string $key ) : string
Compose the absolute "dot" path to the given key.
Parameters
- $key string
public
abstract
has ( string $key , $value , Closure $scope ) : $this
Ensure that the given prop exists.
Parameters
- $key string
- $value null
- $scope Closure |null
protected
abstract
prop ( string $key ) : mixed
Retrieve a prop within the current scope using "dot" notation.
Parameters
- $key string|null