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;
* Immutable container of matcher.
* @author Noritaka Horio <[email protected]>
* @copyright Noritaka Horio <[email protected]>
final class MatcherDictionary implements MatcherContainer
{
use MatcherLookupTable;
* Create matcher dictionary.
* @param array matcher classes
public function __construct(array $matchers)
$this->matchers = Dictionary::fromArray($matchers);
}
* Count elements of an matcher class.
* @return int
public function count()
return count($this->matchers);