Overview

Namespaces

  • expect
    • config
    • configurator
    • context
    • factory
    • matcher
      • strategy
    • package
    • registry
    • reporter

Classes

  • ArrayInclusionStrategy
  • InclusionResult
  • StringInclusionStrategy

Interfaces

  • InclusionStrategy
  • Overview
  • Namespace
  • Class

Class StringInclusionStrategy

expect\matcher\strategy\StringInclusionStrategy implements expect\matcher\strategy\InclusionStrategy
Final
Namespace: expect\matcher\strategy
Located at matcher/strategy/StringInclusionStrategy.php
Methods summary
public
# __construct( string $actualValue )

Parameters

$actualValue
actualValues
public expect\matcher\strategy\InclusionResult
# match( array $expectValues )

<?php $strategy = new StringInclusionStrategy('foo'); $result = $strategy->match([ 'foo', 'bar' ]);.

<?php
    $strategy = new StringInclusionStrategy('foo');
    $result = $strategy->match([ 'foo', 'bar' ]);.

var_dump($result->isMatched()) // true
    var_dump($result->getMatchResults()); // ['foo']
    var_dump($result->getUnmatchResults()); // ['bar']
?>

Parameters

$expectValues
expectValues

Returns

expect\matcher\strategy\InclusionResult

Implementation of

expect\matcher\strategy\InclusionStrategy::match()
Expect API documentation generated by ApiGen