示例#1
0
 public function testFailGetFileNameBefore()
 {
     $Repo = new NbpRepository(self::$_NbpCache);
     $test_data = [[['2002-01-02', 'a'], ENbpEntryNotFound::class], [['2002-01-01', 'a'], ENbpEntryNotFound::class]];
     foreach ($test_data as $data) {
         $Exc = null;
         try {
             $Repo->getFileNameBefore($data[0][0], $data[0][1]);
         } catch (\Exception $Exc) {
         }
         $this->assertNotNull($Exc);
         $this->assertInstanceOf($data[1], $Exc);
     }
 }