summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-28 10:34:00 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-10-31 17:17:45 +0100
commit89fc4358ba9720976d1ea22d778454cff2a3253c (patch)
treee19d115f54318600f08b53c0f61110e3b50b7cc2 /tests
parent067fb18670d2b81adf6209ce1ca9feb357c8bcf0 (diff)
downloadnextcloud-server-89fc4358ba9720976d1ea22d778454cff2a3253c.tar.gz
nextcloud-server-89fc4358ba9720976d1ea22d778454cff2a3253c.zip
Use substr and explode instead of a regex
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/App/AppStore/Version/VersionParserTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/App/AppStore/Version/VersionParserTest.php b/tests/lib/App/AppStore/Version/VersionParserTest.php
index ccf557eefbc..77c289e5474 100644
--- a/tests/lib/App/AppStore/Version/VersionParserTest.php
+++ b/tests/lib/App/AppStore/Version/VersionParserTest.php
@@ -81,4 +81,11 @@ class VersionParserTest extends TestCase {
$this->assertEquals($expected, $this->versionParser->getVersion($input));
}
+ /**
+ * @expectedException \Exception
+ * @expectedExceptionMessage Version cannot be parsed: BogusVersion
+ */
+ public function testGetVersionException() {
+ $this->versionParser->getVersion('BogusVersion');
+ }
}