summaryrefslogtreecommitdiffstatshomepage
path: root/modules/simpletest/tests/symfony.test
blob: 8a7ecb967a69e408a645fbd5c3399bbc73652911 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

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

/**
 * Tests related to Symfony class loading.
 */
class SymfonyClassLoaderTestCase extends DrupalUnitTestCase {
  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)));
  }
}