$params) { $schema->expectOnce($func, $params); } $adapter = new ConfigSchema_StringHashAdapter(); $adapter->adapt($input, $schema); } function testBasic() { $this->assertAdapt( array( 'ID' => 'Namespace.Directive', 'DEFAULT' => "'default' . 'bar'", 'TYPE' => 'string', 'DESCRIPTION' => "Description of default.\n", ), array( 'add' => array( 'Namespace', 'Directive', 'defaultbar', 'string', "Description of default.\n" ) ) ); } }