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 Metaways Infosystems GmbH, 2013
* @copyright Aimeos (aimeos.org), 2014-2025
*/
namespace Aimeos\Base\Criteria\Plugin;
* Test class for \Aimeos\Base\Criteria\Plugin\T3Status
class T3StatusTest extends \PHPUnit\Framework\TestCase
{
private $object;
* Sets up the fixture. This method is called before a test is executed.
protected function setUp() : void
$this->object = new \Aimeos\Base\Criteria\Plugin\T3Status();
}
* Tears down the fixture. This method is called after a test is executed.
protected function tearDown() : void
unset( $this->object );
public function testTranslate()
$this->assertEquals( 0, $this->object->translate( 1 ) );
public function testTranslateDisabled()
$this->assertEquals( 1, $this->object->translate( 0 ) );
public function testReverse()
$this->assertEquals( 1, $this->object->reverse( 0 ) );
public function testReverseDisabled()
$this->assertEquals( 0, $this->object->reverse( 1 ) );