<?php

/**
 * @file
 * Tests for Symfony2-related functionality.
 */

use Drupal\simpletest\UnitTestBase;

/**
 * Tests related to Symfony class loading.
 */
class SymfonyClassLoaderTestCase extends UnitTestBase {
  public static function getInfo() {
    return array(
      'name' => 'Class loader',
      'description' => 'Confirm that the PSR-0 class loader is connected properly',
      'group' => 'Symfony',
    );
  }

  function setUp() {
    parent::setUp();
  }

  /**
   * Test that we can lazy-load classes from the Symfony framework.
   */
  function testClassesLoad() {
    $class_name = 'Symfony\\Component\\HttpFoundation\\Request';
    $this->assertTrue(class_exists($class_name), t('Class !class_name exists', array('!class_name' => $class_name)));
  }
}
