예제 #1
0
 /**
  * Tests whether setting a target succeed.
  *
  * @return void
  */
 public function testTarget()
 {
     $this->assertEquals('', $this->fixture->getTarget());
     $this->fixture->setTarget(dirname(__FILE__));
     $this->assertEquals(dirname(__FILE__), $this->fixture->getTarget());
     // only directories are accepted, not files
     $this->setExpectedException('Exception');
     $this->fixture->setTarget(__FILE__);
     // only valid directories are accepted
     $this->setExpectedException('Exception');
     $this->fixture->setTarget(dirname(__FILE__) . 'a');
 }