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