padraic/mockery — pull request #94 by szeber (2012-10-09 13:55:41+00:00)
Title: Subset matcher does not match if an array value is NULL

The subset matcher incorrectly fails matching an array which contains keys with NULL values as the isset() function returns false if a value is NULL. Replaced the isset() call with array_key_exists().

Example code:
```php
$expectedData = array(
'test1' => null,
);

$actualData = array(
'test1' => null,
'test2' => 'value'
);

Mockery::mock('Test')
->shouldReceive('testMethod')
->with(Mockery::subset($expectedData))
->getMock()
->testMethod($actualData);
```

Expected result: the argument validation passes.

Actual result: a Mockery\Exception is thrown