public function testGetContentCount() { $handler = $this->getObjectStateHandler(); $gatewayMock = $this->getGatewayMock(); $gatewayMock->expects($this->once())->method('getContentCount')->with($this->equalTo(1))->will($this->returnValue(185)); $result = $handler->getContentCount(1); $this->assertEquals(185, $result); }