You are here

function StreamWrapperTest::testGetClassName in SimpleTest 7

Test the getClassName() function.

File

tests/file.test, line 2148
This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.

Class

StreamWrapperTest
Tests stream wrapper functions.

Code

function testGetClassName() {

  // Check the dummy scheme.
  $this
    ->assertEqual($this->classname, file_stream_wrapper_get_class($this->scheme), t('Got correct class name for dummy scheme.'));

  // Check core's scheme.
  $this
    ->assertEqual('DrupalPublicStreamWrapper', file_stream_wrapper_get_class('public'), t('Got correct class name for public scheme.'));
}