function StreamWrapperTest::testGetClassName in Drupal 7
Test the getClassName() function.
File
- modules/
simpletest/ tests/ file.test, line 2930 - 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), 'Got correct class name for dummy scheme.');
// Check core's scheme.
$this
->assertEqual('DrupalPublicStreamWrapper', file_stream_wrapper_get_class('public'), 'Got correct class name for public scheme.');
}