Ejemplo n.º 1
0
 /**
  * @test
  */
 public function fileWorks()
 {
     $file = new File(__DIR__ . '/filetest.txt');
     $this->assertEquals(__DIR__ . '/filetest.txt', $file->filePath());
     $this->assertEquals('txt', $file->format());
 }
Ejemplo n.º 2
0
 /**
  * @param string $filePath
  */
 public function __construct($filePath)
 {
     $this->file = new File($filePath);
     $this->format = new PhotoFormat($this->file->format());
 }