Beispiel #1
0
/**
 * Does traversable size satisfy a given matcher?
 */
function traversableWithSize($size)
{
    require_once 'Hamcrest/Collection/IsTraversableWithSize.php';
    return Hamcrest_Collection_IsTraversableWithSize::traversableWithSize($size);
}
 protected function createMatcher()
 {
     return Hamcrest_Collection_IsTraversableWithSize::traversableWithSize(equalTo(2));
 }