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