From 77198abd94437eb418f11957695986470b1afc9a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 21 May 2015 14:45:53 +0200 Subject: tests: Make prove --state work; Restructure tests This moves all tests into a subdirectory and lets prove itself figure out which tests exist. It seems if you supply the testlist via arguments or stdin --state won't affect the order. Signed-off-by: Florian Pritz --- application/tests/test_libraries_image.php | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 application/tests/test_libraries_image.php (limited to 'application/tests/test_libraries_image.php') diff --git a/application/tests/test_libraries_image.php b/application/tests/test_libraries_image.php deleted file mode 100644 index fb34d794e..000000000 --- a/application/tests/test_libraries_image.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * Licensed under AGPLv3 - * (see COPYING for full license text) - * - */ - -namespace tests; - -class test_libraries_image extends Test { - - public function __construct() - { - parent::__construct(); - } - - public function init() - { - } - - public function cleanup() - { - } - - public function test_type_supported_normalCase() - { - $this->t->is(\libraries\Image::type_supported('image/png'), true, 'image/png should be supported'); - $this->t->is(\libraries\Image::type_supported('image/jpeg'), true, 'image/jpeg should be supported'); - $this->t->is(\libraries\Image::type_supported('application/pdf'), true, 'application/pdf should be supported'); - - $this->t->is(\libraries\Image::type_supported('application/octet-stream'), false, 'application/octet-stream should not be supported'); - $this->t->is(\libraries\Image::type_supported('text/plain'), false, 'text/plain should not be supported'); - } - -} - -- cgit v1.2.3-24-g4f1b