Пример #1
0
 public function testCreateWithStaticGlob()
 {
     $installer = new TestInstaller();
     $descriptor = new InstallerDescriptor('test', get_class($installer), null, array(new InstallerParameter('param1', InstallerParameter::OPTIONAL, 'default1'), new InstallerParameter('param2', InstallerParameter::OPTIONAL, 'default2')));
     $resources = new ArrayResourceCollection();
     $mapping = new AssetMapping('/path/to/css', 'localhost', '/demo');
     $server = new Server('localhost', 'symlink', 'public_html', '/%s', array('param2' => 'custom'));
     $params = new InstallationParams($installer, $descriptor, $resources, $mapping, $server, '/root');
     $this->assertSame('/path/to/css', $params->getBasePath());
 }