Ejemplo n.º 1
0
 public function getLibraryVersion($name)
 {
     $repo = new PlatformRepository();
     $lib = $repo->findLibrary($name);
     return $lib;
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider providesVersions
  * @param $expected
  * @param $input
  */
 public function testVersion($input, $expected)
 {
     $pr = new OC\App\PlatformRepository();
     $normalizedVersion = $pr->normalizeVersion($input);
     $this->assertEquals($expected, $normalizedVersion);
 }