Example #1
0
 public function testGetApplicationFolderNameShouldWork()
 {
     $router = $this->getRouter();
     $config = $this->getConfig();
     $config->setApplicationFolder('appFolder');
     $app = new Piano\Application($config, $router);
     $this->assertEquals('appFolder', $app->getApplicationFolderName());
     $config->setApplicationFolder('application_folder');
     $app = new Piano\Application($config, $router);
     $this->assertEquals('application_folder', $app->getApplicationFolderName());
 }
Example #2
0
 /**
  * @param string $path
  * @return string
  */
 public function getCompleteViewPath($path)
 {
     return '../src/' . $this->application->getApplicationFolderName() . $path . '.phtml';
 }