@covers PHPUnit_Framework_Assert::assertArrayHasKey
public function testAssertArrayHasStringKey() {
$this
->assertArrayHasKey('foo', array(
'foo' => 'bar',
));
try {
$this
->assertArrayHasKey('bar', array(
'foo' => 'bar',
));
} catch (PHPUnit_Framework_AssertionFailedError $e) {
return;
}
$this
->fail();
}