Ejemplo n.º 1
0
 /**
  * Test proxy behavior in a normal calling.
  */
 public function testCall()
 {
     $this->initializeProxy('state1', true);
     $this->proxy->myCustomMethod('foo', 'bar');
     $this->assertTrue($this->state1->methodWasCalled());
     $this->assertSame('myCustomMethod', $this->state1->getMethodNameCalled());
     $this->assertSame(array('foo', 'bar'), $this->state1->getCalledArguments());
 }