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