This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aktiv-web/wp-content/plugins/getsentry-client/raven/test/Raven/Tests/UtilTest.php
T

33 lines
747 B
PHP

<?php
/*
* This file is part of Raven.
*
* (c) Sentry Team
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Raven_StacktraceTestObject
{
private $foo = 'bar';
}
class Raven_Tests_UtilTest extends PHPUnit_Framework_TestCase
{
public function testGetReturnsDefaultOnMissing()
{
$input = array('foo' => 'bar');
$result = Raven_Util::get($input, 'baz', 'foo');
$this->assertEquals('foo', $result);
}
public function testGetReturnsPresentValuesEvenWhenEmpty()
{
$input = array('foo' => '');
$result = Raven_Util::get($input, 'foo', 'bar');
$this->assertEquals('', $result);
}
}