Exemplo n.º 1
0
 public function testFind()
 {
     foreach (array('tic', 'tic tac', 'tac', 'tac toc', 'toc') as $description) {
         $image = new LocalImage($description);
         $image->setDescription($description);
         $this->orm->persist($image);
     }
     $this->orm->flush();
     $this->assertEquals(2, count($this->service->find('tic')));
 }
Exemplo n.º 2
0
 public function testSetGetDescription()
 {
     $image = new LocalImage(self::PICTURE_LANDSCAPE);
     $image->setDescription('desc');
     $this->assertEquals('desc', $image->getDescription());
 }