for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aimeos\Base\MQueue\Message;
class StandardTest extends \PHPUnit\Framework\TestCase
{
private $object;
protected function setUp() : void
$row = array( 'id' => 1, 'message' => 'test', 'cname', 'unittest', 'rtime' => '2000-01-01 00:00:00' );
$this->object = new \Aimeos\Base\MQueue\Message\Standard( $row );
}
protected function tearDown() : void
unset( $this->object );
public function testId()
$this->assertEquals( '1', $this->object->getId() );
public function testBody()
$this->assertEquals( 'test', $this->object->getBody() );
public function testToString()
$this->assertEquals( 'test', (string) $this->object );