protected function createMatcher()
 {
     return Hamcrest_Array_IsArrayWithSize::arrayWithSize(equalTo(2));
 }
Exemple #2
0
/**
 * Does array size satisfy a given matcher?
 * 
 * @param int $size as a {@link Hamcrest_Matcher} or a value.
 */
function arrayWithSize($size)
{
    require_once 'Hamcrest/Array/IsArrayWithSize.php';
    return Hamcrest_Array_IsArrayWithSize::arrayWithSize($size);
}