namespace Symfony\Component\Workflow\Tests\MarkingStore;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Workflow\MarkingStore\MethodMarkingStore;
use Symfony\Component\Workflow\Tests\Subject;
class MethodMarkingStoreTest extends TestCase
{ public function testGetSetMarkingWithMultipleState() { $subject =
new Subject();
$markingStore =
new MethodMarkingStore(false
);
$marking =
$markingStore->
getMarking($subject);
$this->
assertCount(0,
$marking->
getPlaces());
$marking->
mark('first_place'
);
$markingStore->
setMarking($subject,
$marking,
['foo' => 'bar'
]);