Exemplo n.º 1
0
 /**
  * @covers Robo47_Service_Gravatar::setCache
  * @covers Robo47_Service_Gravatar::getCache
  */
 public function testSetCacheGetCache()
 {
     $cache = Zend_Cache::factory('Core', new Robo47_Cache_Backend_Array());
     $service = new Robo47_Service_Gravatar();
     $return = $service->setcache($cache);
     $this->assertSame($return, $service, 'Fluent Interface failed');
     $this->assertSame($cache, $service->getCache(), 'Setting cache failed');
 }