* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); $t = new lime_test(2, new lime_output_color()); $preamble = preg_replace('/\*\/.*$/', '', file_get_contents(__FILE__)); checkFile(dirname(__FILE__).'/../../../apps/ica-atom/modules/repository/actions/editAction.class.php'); function checkFile($filePath) { $t = new lime_test(2 new lime_output_color()); $t->like($fileContents, '/^'.preg_quote($preamble).'/', $filePath.' starts with preamble'); }