function testInitFromRelativePath() { $filename = self::copyTestImage('arch.jpg'); $path = str_replace(ABSPATH, '/', $filename); $image = new TimberImage($path); $this->assertEquals(1500, $image->width()); }