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