public testRegisterTreatsNamePropertyAsKey ( ) |
function testRegisterTreatsNamePropertyAsKey()
{
$task = (object) array('name' => 'foo');
$this->registry[] = $task;
$this->assertEquals($task, $this->registry['foo']);
}