for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2015-2022
*/
namespace Aimeos\Base\View\Helper\Request;
class Typo3Test extends \PHPUnit\Framework\TestCase
{
private $object;
protected function setUp() : void
$view = new \Aimeos\Base\View\Standard();
$server = array( 'REMOTE_ADDR' => '127.0.0.1' );
$this->object = new \Aimeos\Base\View\Helper\Request\Typo3( $view, 123, [], [], [], [], $server );
}
protected function tearDown() : void
unset( $this->object );
public function testTransform()
$this->assertInstanceOf( '\Aimeos\Base\View\Helper\Request\Typo3', $this->object->transform() );
public function testGetClientAddress()
$this->assertEquals( '127.0.0.1', $this->object->getClientAddress() );
public function testGetTarget()
$this->assertEquals( 123, $this->object->getTarget() );