Example #1
0
 /**
  * @todo Implement testArquivoExiste().
  */
 public function testArquivoExiste() {
     $this->object = new Arquivo("ArquivoTest.php");
     $this->assertTrue($this->object->arquivoExiste());
     $this->object = new Arquivo("ArquivoInexistente.php");
     $this->assertFalse($this->object->arquivoExiste());
     $arquivo = dirname(__FILE__).'/../../log/ERRO20100324.log';
     $this->object = new Arquivo($arquivo);
     $this->assertTrue($this->object->arquivoExiste());
     $arquivo = dirname(__FILE__).'/../../log/naoexiste.log';
     $this->object = new Arquivo($arquivo);
     $this->assertFalse($this->object->arquivoExiste());
 }