1 | <?php |
||
8 | class ExpressionTest extends TestCase |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var Expression |
||
13 | */ |
||
14 | private $expression; |
||
15 | |||
16 | protected function setUp() |
||
17 | { |
||
18 | $this->expression = new Expression([ |
||
19 | 'value' => 'testValue' |
||
20 | ]); |
||
21 | } |
||
22 | |||
23 | protected function tearDown() |
||
24 | { |
||
25 | $this->expression = null; |
||
26 | } |
||
27 | |||
28 | public function testGetKeyName() |
||
29 | { |
||
30 | $this->assertNull($this->expression->getKeyName()); |
||
31 | } |
||
32 | |||
33 | public function testSetGetValue() |
||
34 | { |
||
35 | $this->assertEquals('testValue', $this->expression->getValue()); |
||
36 | $this->expression->setValue('valueTest'); |
||
37 | $this->assertEquals('valueTest', $this->expression->getValue()); |
||
38 | } |
||
39 | } |
||
40 |