@@ 223-230 (lines=8) @@ | ||
220 | $this->assertEquals($expectedDate->format('c'), $data['date']); |
|
221 | } |
|
222 | ||
223 | public function testThatCanTransformObjectWithIteratorValue() |
|
224 | { |
|
225 | $transformer = $this->getTransformer(); |
|
226 | $document = $transformer->transform(new POPO(), array('iterator' => array())); |
|
227 | $data = $document->getData(); |
|
228 | ||
229 | $this->assertEquals(array('value1'), $data['iterator']); |
|
230 | } |
|
231 | ||
232 | public function testThatCanTransformObjectWithArrayValue() |
|
233 | { |
|
@@ 262-269 (lines=8) @@ | ||
259 | ); |
|
260 | } |
|
261 | ||
262 | public function testThatNullValuesAreNotFilteredOut() |
|
263 | { |
|
264 | $transformer = $this->getTransformer(); |
|
265 | $document = $transformer->transform(new POPO(), array('nullValue' => array())); |
|
266 | $data = $document->getData(); |
|
267 | ||
268 | $this->assertTrue(array_key_exists('nullValue', $data)); |
|
269 | } |
|
270 | ||
271 | /** |
|
272 | * @expectedException Symfony\Component\PropertyAccess\Exception\RuntimeException |