Overview

Namespaces

  • None
  • Peridot
    • Leo
      • Formatter
      • Interfaces
        • Assert
      • Matcher
        • Template
      • ObjectPath
      • Responder
  • PHP

Traits

  • CollectionAssertTrait
  • ObjectAssertTrait
  • TypeAssertTrait
  • Overview
  • Namespace
  • Class
  • Tree

Trait CollectionAssertTrait

CollectionAssertTrait contains assertions that primarily deal with collections and countable values.

Direct Known Users

Peridot\Leo\Interfaces\Assert
Namespace: Peridot\Leo\Interfaces\Assert
Package: Peridot\Leo\Interfaces\Assert
Located at Interfaces/Assert/CollectionAssertTrait.php
Methods summary
public
# lengthOf( string|array|Countable $countable, mixed $length, string $message = "" )

Perform a length assertion.

Perform a length assertion.

Parameters

$countable
$length
$message
public
# isIncluded( array|string $haystack, mixed $needle, string $message = "" )

Perform an inclusion assertion.

Perform an inclusion assertion.

Parameters

$haystack
$needle
$message
public
# notInclude( array|string $haystack, mixed $needle, string $message = "" )

Perform a negated inclusion assertion.

Perform a negated inclusion assertion.

Parameters

$haystack
$needle
$message
Leo API documentation generated by ApiGen