/** * Test proxy behavior with the magic method unserialize. If the call is forwarded to the active state. */ public function testUnSerialize() { $this->initializeProxy('state1', true); $this->proxy->unserialize('foo'); $this->assertTrue($this->state1->methodWasCalled()); $this->assertSame('unserialize', $this->state1->getMethodNameCalled()); $this->assertSame(array('foo'), $this->state1->getCalledArguments()); }