Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
ZF-10706: fix signals return issue
Browse files Browse the repository at this point in the history
- Signals should always return a ResponseCollection
- ResponseCollection::last() should return null when empty
- Added test for behavior described in issue
  • Loading branch information
weierophinney committed Nov 18, 2010
1 parent d01f94f commit b55f760
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,4 +493,14 @@ public function testIterationHonorsExpirationTimestamps()
}
$this->assertSame($expected, $test);
}

/**
* @group ZF-10706
*/
public function testValidationShouldNotRaiseErrorForMissingResponseObject()
{
$session = new Container('test');
$session->test = 42;
$this->assertEquals(42, $session->test);
}
}

0 comments on commit b55f760

Please sign in to comment.