removed usage of sf2 when possible
This commit is contained in:
parent
493c13a9fb
commit
8406ee86a9
@ -33,7 +33,7 @@ class CacheClearCommandTest extends TestCase
|
||||
{
|
||||
$this->fs = new Filesystem();
|
||||
$this->kernel = new TestAppKernel('test', true);
|
||||
$this->rootDir = sys_get_temp_dir().\DIRECTORY_SEPARATOR.uniqid('sf2_cache_', true);
|
||||
$this->rootDir = sys_get_temp_dir().\DIRECTORY_SEPARATOR.uniqid('sf_cache_', true);
|
||||
$this->kernel->setRootDir($this->rootDir);
|
||||
$this->fs->mkdir($this->rootDir);
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ class TranslationDebugCommandTest extends TestCase
|
||||
{
|
||||
$this->fs->remove($this->translationDir);
|
||||
$this->fs = new Filesystem();
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf2_translation', true);
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
|
||||
$this->fs->mkdir($this->translationDir.'/translations');
|
||||
$this->fs->mkdir($this->translationDir.'/templates');
|
||||
|
||||
@ -112,7 +112,7 @@ class TranslationDebugCommandTest extends TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
$this->fs = new Filesystem();
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf2_translation', true);
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
|
||||
$this->fs->mkdir($this->translationDir.'/Resources/translations');
|
||||
$this->fs->mkdir($this->translationDir.'/Resources/views');
|
||||
$this->fs->mkdir($this->translationDir.'/translations');
|
||||
|
@ -34,7 +34,7 @@ class TranslationUpdateCommandTest extends TestCase
|
||||
public function testDumpMessagesAndCleanInRootDirectory()
|
||||
{
|
||||
$this->fs->remove($this->translationDir);
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf2_translation', true);
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
|
||||
$this->fs->mkdir($this->translationDir.'/translations');
|
||||
$this->fs->mkdir($this->translationDir.'/templates');
|
||||
|
||||
@ -71,7 +71,7 @@ class TranslationUpdateCommandTest extends TestCase
|
||||
public function testWriteMessagesInRootDirectory()
|
||||
{
|
||||
$this->fs->remove($this->translationDir);
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf2_translation', true);
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
|
||||
$this->fs->mkdir($this->translationDir.'/translations');
|
||||
$this->fs->mkdir($this->translationDir.'/templates');
|
||||
|
||||
@ -90,7 +90,7 @@ class TranslationUpdateCommandTest extends TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
$this->fs = new Filesystem();
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf2_translation', true);
|
||||
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
|
||||
$this->fs->mkdir($this->translationDir.'/Resources/translations');
|
||||
$this->fs->mkdir($this->translationDir.'/Resources/views');
|
||||
$this->fs->mkdir($this->translationDir.'/translations');
|
||||
|
@ -24,7 +24,7 @@ class TranslatorTest extends TestCase
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->tmpDir = sys_get_temp_dir().'/sf2_translation';
|
||||
$this->tmpDir = sys_get_temp_dir().'/sf_translation';
|
||||
$this->deleteTmpDir();
|
||||
}
|
||||
|
||||
|
@ -595,7 +595,7 @@ class CompoundFormTest extends AbstractFormTest
|
||||
*/
|
||||
public function testSubmitPostOrPutRequest($method)
|
||||
{
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf2');
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf');
|
||||
touch($path);
|
||||
file_put_contents($path, 'zaza');
|
||||
$values = array(
|
||||
@ -643,7 +643,7 @@ class CompoundFormTest extends AbstractFormTest
|
||||
*/
|
||||
public function testSubmitPostOrPutRequestWithEmptyRootFormName($method)
|
||||
{
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf2');
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf');
|
||||
touch($path);
|
||||
file_put_contents($path, 'zaza');
|
||||
|
||||
@ -691,7 +691,7 @@ class CompoundFormTest extends AbstractFormTest
|
||||
*/
|
||||
public function testSubmitPostOrPutRequestWithSingleChildForm($method)
|
||||
{
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf2');
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf');
|
||||
touch($path);
|
||||
file_put_contents($path, 'zaza');
|
||||
|
||||
@ -728,7 +728,7 @@ class CompoundFormTest extends AbstractFormTest
|
||||
*/
|
||||
public function testSubmitPostOrPutRequestWithSingleChildFormUploadedFile($method)
|
||||
{
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf2');
|
||||
$path = tempnam(sys_get_temp_dir(), 'sf');
|
||||
touch($path);
|
||||
file_put_contents($path, 'zaza');
|
||||
|
||||
|
@ -45,7 +45,7 @@ class AttributeBagTest extends TestCase
|
||||
),
|
||||
),
|
||||
);
|
||||
$this->bag = new AttributeBag('_sf2');
|
||||
$this->bag = new AttributeBag('_sf');
|
||||
$this->bag->initialize($this->array);
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ class AttributeBagTest extends TestCase
|
||||
|
||||
public function testGetStorageKey()
|
||||
{
|
||||
$this->assertEquals('_sf2', $this->bag->getStorageKey());
|
||||
$this->assertEquals('_sf', $this->bag->getStorageKey());
|
||||
$attributeBag = new AttributeBag('test');
|
||||
$this->assertEquals('test', $attributeBag->getStorageKey());
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ class MongoDbSessionHandlerTest extends TestCase
|
||||
'data_field' => 'data',
|
||||
'time_field' => 'time',
|
||||
'expiry_field' => 'expires_at',
|
||||
'database' => 'sf2-test',
|
||||
'database' => 'sf-test',
|
||||
'collection' => 'session-test',
|
||||
);
|
||||
|
||||
|
@ -33,7 +33,7 @@ class PdoSessionHandlerTest extends TestCase
|
||||
|
||||
protected function getPersistentSqliteDsn()
|
||||
{
|
||||
$this->dbFile = tempnam(sys_get_temp_dir(), 'sf2_sqlite_sessions');
|
||||
$this->dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_sessions');
|
||||
|
||||
return 'sqlite:'.$this->dbFile;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ class MockFileSessionStorageTest extends TestCase
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->sessionDir = sys_get_temp_dir().'/sf2test';
|
||||
$this->sessionDir = sys_get_temp_dir().'/sftest';
|
||||
$this->storage = $this->getStorage();
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ class NativeSessionStorageTest extends TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
$this->iniSet('session.save_handler', 'files');
|
||||
$this->iniSet('session.save_path', $this->savePath = sys_get_temp_dir().'/sf2test');
|
||||
$this->iniSet('session.save_path', $this->savePath = sys_get_temp_dir().'/sftest');
|
||||
if (!is_dir($this->savePath)) {
|
||||
mkdir($this->savePath);
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class PhpBridgeSessionStorageTest extends TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
$this->iniSet('session.save_handler', 'files');
|
||||
$this->iniSet('session.save_path', $this->savePath = sys_get_temp_dir().'/sf2test');
|
||||
$this->iniSet('session.save_path', $this->savePath = sys_get_temp_dir().'/sftest');
|
||||
if (!is_dir($this->savePath)) {
|
||||
mkdir($this->savePath);
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ class ChainCacheClearerTest extends TestCase
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
self::$cacheDir = tempnam(sys_get_temp_dir(), 'sf2_cache_clearer_dir');
|
||||
self::$cacheDir = tempnam(sys_get_temp_dir(), 'sf_cache_clearer_dir');
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
|
@ -20,7 +20,7 @@ class CacheWarmerAggregateTest extends TestCase
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
self::$cacheDir = tempnam(sys_get_temp_dir(), 'sf2_cache_warmer_dir');
|
||||
self::$cacheDir = tempnam(sys_get_temp_dir(), 'sf_cache_warmer_dir');
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
|
@ -20,7 +20,7 @@ class CacheWarmerTest extends TestCase
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
self::$cacheFile = tempnam(sys_get_temp_dir(), 'sf2_cache_warmer_dir');
|
||||
self::$cacheFile = tempnam(sys_get_temp_dir(), 'sf_cache_warmer_dir');
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
|
@ -22,7 +22,7 @@ class FileProfilerStorageTest extends TestCase
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->tmpDir = sys_get_temp_dir().'/sf2_profiler_file_storage';
|
||||
$this->tmpDir = sys_get_temp_dir().'/sf_profiler_file_storage';
|
||||
if (is_dir($this->tmpDir)) {
|
||||
self::cleanDir();
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ class ProfilerTest extends TestCase
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->tmp = tempnam(sys_get_temp_dir(), 'sf2_profiler');
|
||||
$this->tmp = tempnam(sys_get_temp_dir(), 'sf_profiler');
|
||||
if (file_exists($this->tmp)) {
|
||||
@unlink($this->tmp);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class TranslatorCacheTest extends TestCase
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->tmpDir = sys_get_temp_dir().'/sf2_translation';
|
||||
$this->tmpDir = sys_get_temp_dir().'/sf_translation';
|
||||
$this->deleteTmpDir();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user