|
| 1 | +;;; ede-php-autoload-composer-test.el --- Unit test for ede-php-autoload-composer |
| 2 | + |
| 3 | +;;; Commentary: |
| 4 | +;; |
| 5 | +;; Copyright (C) 2017, Steven Rémot |
| 6 | + |
| 7 | +;; Author: Steven Rémot <[email protected]> |
| 8 | +;; Keywords: PHP project ede |
| 9 | +;; Homepage: https://github.com/stevenremot/ede-php-autoload |
| 10 | + |
| 11 | +;; This file is not part of GNU Emacs. |
| 12 | + |
| 13 | +;; This program is free software; you can redistribute it and/or |
| 14 | +;; modify it under the terms of the GNU General Public License as |
| 15 | +;; published by the Free Software Foundation; either version 2, or (at |
| 16 | +;; your option) any later version. |
| 17 | + |
| 18 | +;; This program is distributed in the hope that it will be useful, but |
| 19 | +;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 21 | +;; General Public License for more details. |
| 22 | + |
| 23 | +;; You should have received a copy of the GNU General Public License |
| 24 | +;; along with this program; see the file COPYING. If not, write to |
| 25 | +;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 26 | +;; Boston, MA 02111-1307, USA. |
| 27 | + |
| 28 | +;;; Code: |
| 29 | + |
| 30 | +(ert-deftest ede-php-autoload-composer-merge-autoloads-concats-files () |
| 31 | + "`ede-php-autoload-composer-merge-autoloads' should concat provided autoloads." |
| 32 | + (should (equal |
| 33 | + |
| 34 | + (ede-php-autoload-composer-merge-autoloads |
| 35 | + '(:psr-0 (("Test" . "test/")) :psr-4 (("Test3" . "test3/"))) |
| 36 | + '(:psr-0 (("Test2" . "test2/")) :psr-4 (("Test4" . "test4/")))) |
| 37 | + |
| 38 | + '(:psr-0 (("Test" . "test/") |
| 39 | + ("Test2" . "test2/")) |
| 40 | + :psr-4 (("Test3" . "test3/") |
| 41 | + ("Test4" . "test4/")))))) |
| 42 | + |
| 43 | +(provide 'ede-php-autoload-composer-test) |
| 44 | + |
| 45 | +;;; ede-php-autoload-composer-test.el ends here |
0 commit comments