Beispiel #1
0
 public function testSetBarLeftChar()
 {
     try {
         $adapter = new Adapter\Console();
         $adapter->setBarLeftChar(null);
         $this->fail('Expected Zend_ProgressBar_Adapter_Exception');
     } catch (Adapter\Exception $e) {
         $this->assertEquals($e->getMessage(), 'Character may not be empty');
     }
 }
Beispiel #2
0
 public function testSetBarLeftChar()
 {
     $adapter = new Adapter\Console();
     
     $this->setExpectedException('Zend\ProgressBar\Adapter\Exception\InvalidArgumentException','Character may not be empty');
     $adapter->setBarLeftChar(null);
 }