|
@@ -343,7 +343,7 @@ abstract class BaseSerializationTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
public function testNestedFormErrors()
|
|
|
{
|
|
|
- $dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
|
|
|
+ $dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
|
|
|
$formConfig = $this->getMock('Symfony\Component\Form\FormConfigInterface');
|
|
|
$formConfig->expects($this->any())
|
|
|
->method('getEventDispatcher')
|
|
@@ -426,6 +426,7 @@ abstract class BaseSerializationTest extends \PHPUnit_Framework_TestCase
|
|
|
$object = $this->deserialize($this->getContent('mixed_access_types'), 'JMS\SerializerBundle\Tests\Fixtures\GetSetObject');
|
|
|
$this->assertAttributeEquals(1, 'id', $object);
|
|
|
$this->assertAttributeEquals('Johannes', 'name', $object);
|
|
|
+ $this->assertAttributeEquals(42, 'readOnlyProperty', $object);
|
|
|
}
|
|
|
}
|
|
|
|