Exemple #1
0
 /**
  * @dataProvider provideTestGetImageSize
  */
 public function testGetImageSize($path, $expectedResult)
 {
     $handler = new WebPHandler();
     $this->assertEquals($expectedResult, $handler->getImageSize(null, $path));
 }
<?php

require_once 'WebPHandler.php';
$webPHandler = new WebPHandler($_GET['file']);
$webPHandler->render();