@@ 30-40 (lines=11) @@ | ||
27 | * @param string $property |
|
28 | * @param mixed $value |
|
29 | */ |
|
30 | public function testGettersAndSetters($property, $value) |
|
31 | { |
|
32 | $getter = 'get' . ucfirst($property); |
|
33 | $setter = 'set' . ucfirst($property); |
|
34 | $workflow = $this->createWorkflow(); |
|
35 | $this->assertInstanceOf( |
|
36 | 'Oro\Bundle\WorkflowBundle\Model\Workflow', |
|
37 | call_user_func_array(array($workflow, $setter), array($value)) |
|
38 | ); |
|
39 | $this->assertEquals($value, call_user_func_array(array($workflow, $getter), array())); |
|
40 | } |
|
41 | ||
42 | public function propertiesDataProvider() |
|
43 | { |
@@ 14-24 (lines=11) @@ | ||
11 | * @param string $property |
|
12 | * @param mixed $value |
|
13 | */ |
|
14 | public function testGettersAndSetters($property, $value) |
|
15 | { |
|
16 | $getter = 'get' . ucfirst($property); |
|
17 | $setter = 'set' . ucfirst($property); |
|
18 | $obj = new Attribute(); |
|
19 | $this->assertInstanceOf( |
|
20 | 'Oro\Bundle\ActionBundle\Model\Attribute', |
|
21 | call_user_func_array(array($obj, $setter), array($value)) |
|
22 | ); |
|
23 | $this->assertEquals($value, call_user_func_array(array($obj, $getter), array())); |
|
24 | } |
|
25 | ||
26 | public function propertiesDataProvider() |
|
27 | { |