Ejemplo n.º 1
0
/**
 * Test if an array has both an key and value in parity with each other.
 */
function hasEntry($key, $value)
{
    require_once 'Hamcrest/Array/IsArrayContainingKeyValuePair.php';
    return Hamcrest_Array_IsArrayContainingKeyValuePair::hasKeyValuePair($key, $value);
}
 protected function createMatcher()
 {
     return Hamcrest_Array_IsArrayContainingKeyValuePair::hasKeyValuePair('irrelevant', 'irrelevant');
 }