Bob\Test\TaskRegistryTest::testRegisterTreatsNamePropertyAsKey PHP Method

testRegisterTreatsNamePropertyAsKey() public method

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