Beispiel #1
0
 public function getLibraryVersion($name)
 {
     $repo = new PlatformRepository();
     $lib = $repo->findLibrary($name);
     return $lib;
 }
Beispiel #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);
 }