You are here

protected function XmlEncoderTest::getNamespacedArray in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::getNamespacedArray()
2 calls to XmlEncoderTest::getNamespacedArray()
XmlEncoderTest::testDecodeWithNamespace in vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php
XmlEncoderTest::testEncodeWithNamespace in vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php

File

vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php, line 466

Class

XmlEncoderTest

Namespace

Symfony\Component\Serializer\Tests\Encoder

Code

protected function getNamespacedArray() {
  return array(
    '@xmlns' => 'http://www.w3.org/2005/Atom',
    '@xmlns:app' => 'http://www.w3.org/2007/app',
    '@xmlns:media' => 'http://search.yahoo.com/mrss/',
    '@xmlns:gd' => 'http://schemas.google.com/g/2005',
    '@xmlns:yt' => 'http://gdata.youtube.com/schemas/2007',
    'qux' => '1',
    'app:foo' => 'foo',
    'yt:bar' => array(
      'a',
      'b',
    ),
    'media:baz' => array(
      'media:key' => 'val',
      'media:key2' => 'val',
      'A B' => 'bar',
      'item' => array(
        array(
          'title' => 'title1',
        ),
        array(
          'title' => 'title2',
        ),
      ),
      'Barry' => array(
        '@size' => 'large',
        'FooBar' => array(
          'Baz' => 'Ed',
          '@gd:id' => 1,
        ),
      ),
    ),
  );
}