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