for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2015-2025
*/
namespace Aimeos\Base\View\Helper\Param;
class StandardTest extends \PHPUnit\Framework\TestCase
{
private $object;
protected function setUp() : void
$view = new \Aimeos\Base\View\Standard();
$param = array( 'page' => 'test' );
$this->object = new \Aimeos\Base\View\Helper\Param\Standard( $view, $param );
}
protected function tearDown() : void
$this->object = null;
public function testTransform()
$this->assertEquals( 'test', $this->object->transform( 'page', 'none' ) );
$this->assertEquals( 'none', $this->object->transform( 'missing', 'none' ) );
public function testTransformNoDefault()
$this->assertEquals( 'test', $this->object->transform( 'page' ) );
$this->assertEquals( null, $this->object->transform( 'missing' ) );