trait Illuminate / Testing / Fluent / Concerns / Matching
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

Matching

Methods

public

where ( string $key , $expected ) : $this

Asserts that the property matches the expected value.

Parameters

public

whereNot ( string $key , $expected ) : $this

Asserts that the property does not match the expected value.

Parameters

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