File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class DefinitionBuilderTest extends TestCase
11
11
public function testAddPlaceInvalidName ()
12
12
{
13
13
$ this ->expectException ('Symfony\Component\Workflow\Exception\InvalidArgumentException ' );
14
- $ builder = new DefinitionBuilder (['a" ' , 'b ' ]);
14
+ new DefinitionBuilder (['a" ' , 'b ' ]);
15
15
}
16
16
17
17
public function testSetInitialPlace ()
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function testAddPlacesInvalidArgument()
22
22
{
23
23
$ this ->expectException ('Symfony\Component\Workflow\Exception\InvalidArgumentException ' );
24
24
$ places = ['a" ' , 'e" ' ];
25
- $ definition = new Definition ($ places , []);
25
+ new Definition ($ places , []);
26
26
}
27
27
28
28
public function testSetInitialPlace ()
@@ -37,7 +37,7 @@ public function testSetInitialPlaceAndPlaceIsNotDefined()
37
37
{
38
38
$ this ->expectException ('Symfony\Component\Workflow\Exception\LogicException ' );
39
39
$ this ->expectExceptionMessage ('Place "d" cannot be the initial place as it does not exist. ' );
40
- $ definition = new Definition ([], [], 'd ' );
40
+ new Definition ([], [], 'd ' );
41
41
}
42
42
43
43
public function testAddTransition ()
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public function testValidateName()
11
11
{
12
12
$ this ->expectException ('Symfony\Component\Workflow\Exception\InvalidArgumentException ' );
13
13
$ this ->expectExceptionMessage ('The transition "foo.bar" contains invalid characters. ' );
14
- $ transition = new Transition ('foo.bar ' , 'a ' , 'b ' );
14
+ new Transition ('foo.bar ' , 'a ' , 'b ' );
15
15
}
16
16
17
17
public function testConstructor ()
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ public function testApplyWithSameNameTransition()
219
219
$ this ->assertFalse ($ marking ->has ('b ' ));
220
220
$ this ->assertFalse ($ marking ->has ('c ' ));
221
221
222
- $ marking = $ workflow ->apply ($ subject , 'a_to_bc ' );
222
+ $ workflow ->apply ($ subject , 'a_to_bc ' );
223
223
$ marking = $ workflow ->apply ($ subject , 'b_to_c ' );
224
224
225
225
$ this ->assertFalse ($ marking ->has ('a ' ));
@@ -291,7 +291,7 @@ public function testApplyWithEventDispatcher()
291
291
'workflow.workflow_name.announce.t2 ' ,
292
292
];
293
293
294
- $ marking = $ workflow ->apply ($ subject , 't1 ' );
294
+ $ workflow ->apply ($ subject , 't1 ' );
295
295
296
296
$ this ->assertSame ($ eventNameExpected , $ eventDispatcher ->dispatchedEvents );
297
297
}
@@ -330,7 +330,7 @@ public function testApplyDoesNotTriggerExtraGuardWithEventDispatcher()
330
330
'workflow.workflow_name.announce ' ,
331
331
];
332
332
333
- $ marking = $ workflow ->apply ($ subject , 'a-b ' );
333
+ $ workflow ->apply ($ subject , 'a-b ' );
334
334
335
335
$ this ->assertSame ($ eventNameExpected , $ eventDispatcher ->dispatchedEvents );
336
336
}
You can’t perform that action at this time.
0 commit comments