Exemple #1
0
 function testGetTitleForFile()
 {
     $result = $this->batch->getTitleForFile($this->dir . 'DSC01613.jpg');
     $this->assertEquals('Dan in front of Mona Lake', $result);
     $result = $this->batch->getTitleForFile($this->dir . 'DSC01614.jpg');
     $this->assertEquals('Me this time', $result);
     $result = $this->batch->getTitleForFile($this->dir . 'DSC01615.jpg');
     $this->assertEquals('Schats Bakery', $result);
 }
Exemple #2
0
 function testGetTitleForFile()
 {
     $dir = $this->dirAlbum;
     $result = $this->batch->getTitleForFile($dir . 'party_1_deford_family.jpg');
     $this->assertEquals('Reception honoring DeFord (DeFord Family)', $result);
     $result = $this->batch->getTitleForFile($dir . 'party_2_deford_family.jpg');
     $this->assertEquals('Dezoral Thomas, Chris Craig, DeFord, DeFord Jr, David Morton at reception honoring DeFord (DeFord Family)', $result);
     $result = $this->batch->getTitleForFile($dir . 'party_3_deford_family.jpg');
     $this->assertEquals('Reception honoring DeFord (DeFord Family)', $result);
 }