From 8b450bb3ff801df8ac5522870325eb46543d2cd2 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 30 Apr 2014 19:14:50 +0200 Subject: check if mime type detection works --- src/phorkie/SetupCheck.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/phorkie/SetupCheck.php') diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php index e4db48d..5eae1f3 100644 --- a/src/phorkie/SetupCheck.php +++ b/src/phorkie/SetupCheck.php @@ -35,6 +35,7 @@ class SetupCheck $sc->checkDirs(); $sc->checkGit(); $sc->checkDatabase(); + $sc->checkMimeTypeDetection(); } public function checkDeps() @@ -104,6 +105,14 @@ class SetupCheck $dbs->getSetup()->setup(); } + public function checkMimeTypeDetection() + { + $rp = new Repository_Post(); + if ($rp->getType('') != 'php') { + $this->fail('MIME type detection fails'); + } + } + public function fail($msg) { throw new Exception($msg); -- cgit v1.2.3