Location: PHPKode > projects > JAOSS > makeusabrew-jaoss-48332bf/tests/library/CoreExceptionTest.php
<?php
class CoreExceptionTest extends PHPUnit_Framework_TestCase {
	public function testGetArg() {
		$e = new CoreException("Fake Exception", 0, array(
			"arg" => "foo",
			"another" => "bar",
		));
		
		$this->assertEquals("foo", $e->getArg("arg"));
		$this->assertEquals("bar", $e->getArg("another"));
		$this->assertEquals(NULL, $e->getArg("bad index"));
	}
}
Return current item: JAOSS