<?php
/* This file is part of the ICA-AtoM application
*
* For the full copyright and license information, please view the COPYRIGHT
* and LICENSE files that were distributed with this source code.
*
* Copyright (C) 2006-2007 Peter Van Garderen <peter@artefactual.com>
*
* 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');
}