Ejemplo n.º 1
0
 public function testCanGetTheImageExtension()
 {
     $this->assertNull($this->url->getExtension(), 'extension should initialy be null');
     $this->url->jpg();
     $this->assertSame('jpg', $this->url->getExtension(), 'Could not fetch extension after setting it to jpg');
     $this->url->png();
     $this->assertSame('png', $this->url->getExtension(), 'Could not fetch extension after setting it to png');
     $this->url->gif();
     $this->assertSame('gif', $this->url->getExtension(), 'Could not fetch extension after setting it to gif');
 }