Passed
Push — master ( 22ccfd...5bc476 )
by Aimeos
12:34
created

StandardTest::testToString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Aimeos\Base\MQueue\Message;
4
5
6
class StandardTest extends \PHPUnit\Framework\TestCase
7
{
8
	private $object;
9
10
11
	protected function setUp() : void
12
	{
13
		$row = array( 'id' => 1, 'message' => 'test', 'cname', 'unittest', 'rtime' => '2000-01-01 00:00:00' );
14
		$this->object = new \Aimeos\Base\MQueue\Message\Standard( $row );
15
	}
16
17
18
	protected function tearDown() : void
19
	{
20
		unset( $this->object );
21
	}
22
23
24
	public function testId()
25
	{
26
		$this->assertEquals( '1', $this->object->getId() );
27
	}
28
29
30
	public function testBody()
31
	{
32
		$this->assertEquals( 'test', $this->object->getBody() );
33
	}
34
35
36
	public function testToString()
37
	{
38
		$this->assertEquals( 'test', (string) $this->object );
39
	}
40
}
41