phpspec/phpspec — pull request #217 by MarcelloDuarte (2013-11-26 20:51:56+00:00)
Title: Fixes #216 and #213. Object state not working because subject is missing

Object state matcher was not working when a expectation was made directly to the SUS. Expectations using object state matchers to SUS wrapped returned values were working because there was a subject. This fix address that by calling the instantiator and providing an instance of subject so the matcher can support the expectation.