for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of expect package.
*
* (c) Noritaka Horio <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace expect\matcher\strategy;
final class InclusionResult
{
* @var array
private $expectValues;
private $matchResults;
private $unmatchResults;
* @param array expectValues
* @param array matchResults
* @param array unmatchResults
public function __construct(array $expectValues, array $matchResults, array $unmatchResults)
$this->expectValues = $expectValues;
$this->matchResults = $matchResults;
$this->unmatchResults = $unmatchResults;
}
* @return array
public function getMatchResults()
return $this->matchResults;
public function getUnmatchResults()
return $this->unmatchResults;
* @return bool
public function isMatched()
return count($this->matchResults) >= count($this->expectValues);