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