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
*/
namespace Aimeos\MW\Criteria\Plugin;
* Test class for \Aimeos\MW\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()
$this->object = new \Aimeos\MW\Criteria\Plugin\T3Status();
}
* Tears down the fixture. This method is called after a test is executed.
protected function tearDown()
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 ) );