public function testCount() { list($handler, $repo, $auth, $keygen) = $this->getMocks(); $instance = new Storage($handler, $repo, $auth, $keygen); $repo->shouldReceive('count')->andReturn(10); $this->assertEquals(10, $instance->count()); }
public function testCount() { list($handler, $repo, $auth, $keygen) = $this->getMocks(); $instance = new Storage($handler, $repo, $auth, $keygen); $repo->shouldReceive('count')->andReturn(10); $this->assertEquals(10, $instance->count()); }