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