Location: PHPKode > scripts > NIKAcore > nikacore/MyTestCase.php
<?php

// NIKAcore: core classes for PHP websites
// 
// Copyright (C) 2003 NIKA Consulting, Inc.
//
// This file is part of NIKAcore.
// 
// NIKAcore 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.
// 
// NIKAcore 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 NIKAcore; if not, write to the Free Software Foundation, Inc., 59
// Temple Place, Suite 330, Boston, MA  02111-1307  USA
// 
// Contact hide@address.com with comments, questions, or patches.

require_once('phpunit.php');

class MyTestCase extends TestCase {

	function assertClass($expected, $actual, $comment = '') {
		$this->assertEquals(strtolower($expected), get_class($actual), $comment);
	}

	function assertNull($actual, $comment = '') {
		$this->assert($actual->isNull());
	}

}

?>
Return current item: NIKAcore