100+ results for 'uniqid'
Not the results you expected?
user.php (http://skeleton.googlecode.com/svn/trunk/) PHP · 254 lines
Attribute.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 372 lines
257 return $password;
258 case self::PASSWORD_HASH_SSHA:
259 $salt = substr(sha1(uniqid(mt_rand(), true), true), 0, 4);
260 $rawHash = sha1($password . $salt, true) . $salt;
261 $method = '{SSHA}';
266 break;
267 case self::PASSWORD_HASH_SMD5:
268 $salt = substr(sha1(uniqid(mt_rand(), true), true), 0, 4);
269 $rawHash = md5($password . $salt, true) . $salt;
270 $method = '{SMD5}';
DatabaseTest.php (https://github.com/tmarois/Filebase.git) PHP · 341 lines
eztemplatecompiledloop.php
(git://github.com/ezsystems/ezpublish.git)
PHP · 300 lines
✨ Summary
This PHP class generates a loop body for a template engine, handling sequence variables and delimiter checks. It initializes variables, processes the loop body, and iterates over the sequence. The code is designed to work with a specific template engine, generating PHP and template variables as needed. It appears to be part of a larger templating system.
This PHP class generates a loop body for a template engine, handling sequence variables and delimiter checks. It initializes variables, processes the loop body, and iterates over the sequence. The code is designed to work with a specific template engine, generating PHP and template variables as needed. It appears to be part of a larger templating system.
33 $this->Parameters = $parameters;
34 $this->NodePlacement = $nodePlacement;
35 $this->UniqID = $uniqid;
36 $this->NewNodes =& $newNodes;
37 $this->Node = $node;
65 {
66 $fName = $this->Name;
67 $uniqid = $this->UniqID;
68 $this->NewNodes[] = eZTemplateNodeTool::createVariableUnsetNode( "${fName}_sequence_array_$uniqid" );
82 $fName = $this->Name;
83 $uniqid = $this->UniqID;
84 $this->NewNodes[] = eZTemplateNodeTool::createCodePieceNode( "// creating sequence variables for \{$fName} loop" );
85 $this->NewNodes[] = eZTemplateNodeTool::createVariableNode( false,
118 $fName = $this->Name;
119 $uniqid = $this->UniqID;
120 $seqArray = "${fName}_sequence_array_$uniqid";
ArrayAdapter.php (https://github.com/zendframework/ZendQueue.git) PHP · 317 lines
150 // create the message
151 $data = array(
152 'message_id' => md5(uniqid(rand(), true)),
153 'body' => $message,
154 'md5' => md5($message),
205 || ($msg['timeout'] + $timeout < $start_time)
206 ) {
207 $msg['handle'] = md5(uniqid(rand(), true));
208 $msg['timeout'] = microtime(true);
209 $data[] = $msg;
email.php (https://github.com/BizziBiz/Reconify.git) PHP · 50 lines
UUIDUtil.php (https://bitbucket.org/freshflow/sabredav-1.8.5-fork.git) PHP · 64 lines
save.php (https://bitbucket.org/yihangho/scribble.git) PHP · 62 lines
TokenGenerator.php (https://github.com/cedriclombardot/FOSUserBundle.git) PHP · 62 lines
Randomid.php (https://github.com/mackensen/moodle.git) PHP · 77 lines
ClassTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 144 lines
56 'Simple Product'
57 )->setSku(
58 uniqid()
59 )->setPrice(
60 10
85 /** @var $model \Magento\Tax\Model\ClassModel */
86 $model = $this->_objectManager->create(\Magento\Tax\Model\ClassModel::class);
87 $model->setClassName('TaxClass' . uniqid())->setClassType($classType)->isObjectNew(true);
88 $model->save();
FileRepository_Backend_FileSystem.class.php (https://github.com/cj/Project-Pier.git) PHP · 443 lines
security.php (https://github.com/gevans/kohana-protect-from-forgery.git) PHP · 197 lines
User.php (https://github.com/leftnode/tuneto.us.git) PHP · 79 lines
60 public function createDirectory() {
61 /**
62 * While it's not good to use sha1() on a uniqid, this isn't for
63 * encryption purposes, just random string generation purposes.
64 */
65 $uniqid = uniqid(NULL, true);
66 $uniqid_sha1 = sha1($uniqid);
68 $char1 = substr($uniqid_sha1, 0, 1);
69 $char2 = substr($uniqid_sha1, 1, 1);
71 $directory = $char1 . DS . $char2 . DS . $uniqid;
72 $full_path = DIR_PRIVATE . $directory;
73 if ( false === is_dir($full_path) ) {
jsondb.php (https://gitlab.com/mlnkv/simple-rest-api) PHP · 228 lines
message.php (https://github.com/condesan/infoandina.git) PHP · 22 lines
18 <p>Para enviar el contenido de una página web añada lo que sigue al mensaje:<br/>
19 <b>[URL:</b>http://www.ejemplo.org/dirección/al/fichero.html<b>]</b></p>
20 <p>Puede incluir la siguiente información del usuario en esta URL: email, foreignkey, id y uniqid.</br>
21 <b>[URL:</b>http://www.ejemplo.org/perfilusuario.php?email=<b>[</b>email<b>]]</b><br/>
22 </p>
database.php (https://bitbucket.org/bodva/progr.git) PHP · 239 lines
autoloader.php (https://github.com/tharkun/atoum.git) PHP · 149 lines
45 ->if($autoloader = new testedClass())
46 ->then
47 ->object($autoloader->addNamespaceAlias($alias = uniqid(), $target = uniqid()))->isIdenticalTo($autoloader)
48 ->array($autoloader->getNamespaceAliases())->isEqualTo(array(
49 'atoum\\' => 'mageekguy\\atoum\\',
57 )
58 )
59 ->object($autoloader->addNamespaceAlias('\\' . ($otherAlias = uniqid()), '\\' . ($otherTarget = uniqid())))->isIdenticalTo($autoloader)
60 ->array($autoloader->getNamespaceAliases())->isEqualTo(array(
61 'atoum\\' => 'mageekguy\\atoum\\',
64 )
65 )
66 ->object($autoloader->addNamespaceAlias('\\' . ($anOtherAlias = uniqid()) . '\\', '\\' . ($anOtherTarget = uniqid()) . '\\'))->isIdenticalTo($autoloader)
67 ->array($autoloader->getNamespaceAliases())->isEqualTo(array(
68 'atoum\\' => 'mageekguy\\atoum\\',
asserter.php (https://github.com/tharkun/atoum.git) PHP · 143 lines
110 ->object($asserter->setWithArguments(array()))->isIdenticalTo($asserter)
111 ->mock($asserter)->call('setWith')->never()
112 ->object($asserter->setWithArguments(array($argument = uniqid())))->isIdenticalTo($asserter)
113 ->mock($asserter)->call('setWith')->withArguments($argument)->once()
114 ;
subscriptions.php (https://github.com/AndyRixon/LayerBulletin.git) PHP · 246 lines
ARedisSetTest.php (https://github.com/phpnode/YiiRedis.git) PHP · 166 lines
17 public function testBasics() {
18 $redis = $this->getConnection();
19 $set = new ARedisSet("TestSet:".uniqid(),$redis);
20 $this->assertTrue($set->add("fish"));
21 $this->assertTrue($set->add("chips"));
39 public function testDiff() {
40 $redis = $this->getConnection();
41 $set1 = new ARedisSet("TestSet1:".uniqid(),$redis);
42 $set2 = new ARedisSet("TestSet2:".uniqid(),$redis);
50 $this->assertEquals(array(5),$set1->diff($set2->name));
51 $this->assertEquals(array(10),$set2->diff($set1->name));
52 $newSet = $set1->diffStore("TestSet3:".uniqid(),$set2);
53 $this->assertEquals(array(5),$newSet->getData());
54 $newSet->clear();
59 public function testInter() {
60 $redis = $this->getConnection();
61 $set1 = new ARedisSet("TestSet1:".uniqid(),$redis);
62 $set2 = new ARedisSet("TestSet2:".uniqid(),$redis);
mock.php (https://github.com/tharkun/atoum.git) PHP · 175 lines
30 $mockAsserter = new asserters\mock(new asserter\generator()),
31 $mockAggregator = new \mock\mageekguy\atoum\tests\units\asserters\mock\call\dummy(),
32 $function = uniqid()
33 )
34 )
92 ->object($call->withArguments($arg = uniqid()))->isIdenticalTo($call)
93 ->array($call->getArguments())->isEqualTo(array($arg))
94 ->object($call->withArguments($arg1 = uniqid(), $arg2 = uniqid()))->isIdenticalTo($call)
95 ->array($call->getArguments())->isEqualTo(array($arg1, $arg2))
96 ;
107 )
108 ->then
109 ->object($call->withAtLeastArguments($arguments = array(1 => uniqid(), 3 => uniqid())))->isIdenticalTo($call)
110 ->array($call->getArguments())->isEqualTo(array($arguments))
111 ->object($call->withAtLeastArguments($otherArguments = array(1 => uniqid(), 3 => uniqid())))->isIdenticalTo($call)
MockArraySessionStorage.php (https://gitlab.com/jjpa2018/dashboard) PHP · 252 lines
ExportModel.php (https://gitlab.com/gideonmarked/PLCPortal) PHP · 206 lines
archive.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 189 lines
62 {
63 $config =& JFactory::getConfig();
64 $tmpfname = $config->getValue('config.tmp_path').DS.uniqid('gzip');
65 $gzresult = $adapter->extract($archivename, $tmpfname);
66 if (JError::isError($gzresult))
94 {
95 $config =& JFactory::getConfig();
96 $tmpfname = $config->getValue('config.tmp_path').DS.uniqid('bzip2');
97 $bzresult = $adapter->extract($archivename, $tmpfname);
98 if (JError::isError($bzresult))
JobBackupTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 92 lines
Semister.php (https://gitlab.com/mehedi-xion/web_apps_php_26) PHP · 164 lines
FactoryTest.php (https://github.com/netactive/typo3.git) PHP · 143 lines
User.php (https://github.com/Xedecimal/Pass-Store.git) PHP · 216 lines
ParentListInput.php (https://gitlab.com/nitm/yii2-widgets) PHP · 97 lines
40 if(!($this->model instanceof \nitm\models\Data))
41 throw new \yii\base\ErrorException(__CLASS__.'->'.__FUNCTION__."() needs a \\nitm\models\Data based model for the parents list!");
42 $this->options['id'] = isset($this->options['id']) ? $this->options['id'] : $this->model->isWhat().'parent-list-input'.uniqid();
44 $parents = [];
Http.php (https://github.com/jenkoian/lithium-geo.git) PHP · 155 lines
call.php (https://github.com/tharkun/atoum.git) PHP · 118 lines
22 ;
24 $call = new php\call($function = uniqid(), $arguments = array($arg = uniqid()));
26 $this->assert
30 ;
32 $call = new php\call($function = uniqid(), $arguments = array($arg = uniqid()), $object = $this);
34 $this->assert
53 public function testSetArguments()
54 {
55 $call = new php\call(uniqid());
57 $this->assert
MockArraySessionStorage.php (https://gitlab.com/x33n/ampache) PHP · 268 lines
template.php (https://bitbucket.org/asosso/joomla31.git) PHP · 104 lines
RateTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 299 lines
56 [
57 $postData + [
58 'code' => 'Rate ' . uniqid(rand()),
59 'zip_is_range' => '1',
60 'zip_from' => '10000',
66 [
67 $postData + [
68 'code' => 'Rate ' . uniqid(rand()),
69 'zip_is_range' => '0',
70 'zip_from' => '10000',
119 'tax_country_id' => 'US',
120 'tax_region_id' => '0',
121 'code' => 'Rate ' . uniqid(),
122 'zip_is_range' => '1',
123 'zip_from' => '',
audio.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 150 lines
PluginInstallerTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 184 lines
Controller.php (https://gitlab.com/ElvisAns/tiki) PHP · 94 lines
engine.php (https://github.com/tharkun/atoum.git) PHP · 274 lines
180 $this->assert
181 ->exception(function() use ($tagger) {
182 $tagger->tagVersion(uniqid());
183 }
184 )
189 $srcIterator = new \arrayIterator(array(
190 $file1 = $srcDirectory . \DIRECTORY_SEPARATOR . ($basename1 = uniqid()),
191 $file2 = $srcDirectory . \DIRECTORY_SEPARATOR . ($basename2 = uniqid()),
196 $tagger->setSrcIteratorInjector(function($directory) use ($srcIterator) { return $srcIterator; });
198 $adapter->file_get_contents[1] = ($file1Part1 = uniqid()) . '\'$Rev: ' . rand(1, PHP_INT_MAX) . ' $\'' . ($file1Part2 = uniqid());
199 $adapter->file_get_contents[2] = $contentOfFile2 = uniqid();
200 $adapter->file_get_contents[3] = ($file3Part1 = uniqid()) . '"$Rev: ' . rand(1, PHP_INT_MAX) . ' $"' . ($file3Part2 = uniqid());
201 $adapter->file_put_contents = function() {};
AuthenticateTest.php (https://github.com/imbo/imboclient-php.git) PHP · 113 lines
Configuration.php (https://gitlab.com/randydanniswara/website) PHP · 101 lines
OAuth2_Provider.php (https://gitlab.com/waltspence/gtd-pad) PHP · 213 lines
noo_job-loop.php (https://gitlab.com/hop23typhu/list-theme) PHP · 130 lines
TemplateTest.php
(https://bitbucket.org/SallyCMS/0.4)
PHP · 71 lines
✨ Summary
This PHP code creates a test template file for a templating system, specifically Sly. It generates a unique filename and contents for the template, then tests that the template’s metadata can be retrieved using the templating service. The test verifies that the template’s name, title, and custom parameter are correctly extracted from the template file.
This PHP code creates a test template file for a templating system, specifically Sly. It generates a unique filename and contents for the template, then tests that the template’s metadata can be retrieved using the templating service. The test verifies that the template’s name, title, and custom parameter are correctly extracted from the template file.
11 class sly_Service_TemplateTest extends PHPUnit_Framework_TestCase {
12 private static $filename;
13 private static $uniqid;
15 public static function setUpBeforeClass() {
16 $uniqid = 'abc'.uniqid();
17 $filename = 'template.'.$uniqid.'.php';
45 self::$filename = sly_Util_Directory::join($folder, $filename);
46 self::$uniqid = $uniqid;
48 file_put_contents(self::$filename, $testfile);
64 $service = sly_Service_Factory::getTemplateService();
66 $this->assertEquals(self::$uniqid, $service->get(self::$uniqid, 'name'));
67 $this->assertEquals('Mein super tolles Template!!!1elf', $service->getTitle(self::$uniqid));
exception.php (https://github.com/cderue/atoum.git) PHP · 310 lines
39 $this->assert
40 ->exception(function() use (& $line, $asserter, & $value) { $line = __LINE__; $asserter->setWith($value = uniqid()); })
41 ->isInstanceOf('mageekguy\atoum\asserter\exception')
42 ->hasMessage(sprintf($this->getLocale()->_('%s is not an exception'), $asserter->getTypeOf($value)))
90 ->object($asserter->isInstanceOf('exception'))->isIdenticalTo($asserter)
91 ->exception(function() use ($asserter) {
92 $asserter->isInstanceOf(uniqid());
93 }
94 )
134 ;
136 $asserter->setWith(new atoum\exceptions\runtime(uniqid(), $code = rand(2, PHP_INT_MAX)));
138 $score->reset();
OAuthStoreAbstract.class.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 148 lines
memoization.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 230 lines
UserRepository.php (https://bitbucket.org/ghanu/chope.git) PHP · 362 lines
pusher.php (https://github.com/agallou/atoum.git) PHP · 273 lines
46 ->if($pusher = new testedClass(__FILE__))
47 ->then
48 ->object($pusher->setRemote($remote = uniqid()))->isIdenticalTo($pusher)
49 ->string($pusher->getRemote())->isEqualTo($remote)
50 ->object($pusher->setRemote())->isIdenticalTo($pusher)
58 ->if($pusher = new testedClass(__FILE__))
59 ->then
60 ->object($pusher->setTagFile($tagFile = uniqid()))->isIdenticalTo($pusher)
61 ->string($pusher->getTagFile())->isEqualTo($tagFile)
62 ->object($pusher->setTagFile())->isIdenticalTo($pusher)
84 ->if($pusher = new testedClass(__FILE__))
85 ->then
86 ->object($pusher->setWorkingDirectory($workingDirectory = uniqid()))->isIdenticalTo($pusher)
87 ->string($pusher->getWorkingDirectory())->isEqualTo($workingDirectory)
88 ->object($pusher->setWorkingDirectory())->isIdenticalTo($pusher)
media.php (https://bitbucket.org/gregbenner/the-league-of-gentlemen-theme.git) PHP · 66 lines
16 if ( $video_url['host'] == 'youtube.com' || $video_url['host'] == 'www.youtube.com' ) {
17 parse_str( $video_url['query'], $youtube );
18 $id = uniqid( '', false );
19 $return = '
20 <iframe width="' . $width . '" height="' . $height . '" src="http://www.youtube.com/embed/' . $youtube['v'] . '" frameborder="0" allowfullscreen="true"></iframe>
44 if ( in_array( $video_ext, $videos ) ) {
45 $player_id = uniqid( '_', false );
47 if ( is_array( $jwplayer ) ) {
56 // Audio file (mp3)
57 if ( mb_substr( $media_url, -4 ) == '.mp3' ) {
58 $player_id = uniqid( '_', false );
60 $return = '<div id="player' . $player_id . '"><script type="text/javascript">jwplayer("player' . $player_id . '").setup({flashplayer:"' . su_plugin_url() . '/lib/player.swf",file:"' . $media_url . '",height: ' . $height . ',width:' . $width . ',controlbar:"bottom",image:"' . su_plugin_url() . '/images/media-audio.jpg",icons:"none",screencolor:"F0F0F0"});</script></div>';
WidgetController.php (https://bitbucket.org/acidel/buykoala.git) PHP · 70 lines
40 public function chooserAction()
41 {
42 $uniqId = $this->getRequest()->getParam('uniq_id');
43 $massAction = $this->getRequest()->getParam('use_massaction', false);
44 $productTypeId = $this->getRequest()->getParam('product_type_id', null);
46 $productsGrid = $this->getLayout()->createBlock('adminhtml/catalog_product_widget_chooser', '', array(
47 'id' => $uniqId,
48 'use_massaction' => $massAction,
49 'product_type_id' => $productTypeId,
55 if (!$this->getRequest()->getParam('products_grid')) {
56 $categoriesTree = $this->getLayout()->createBlock('adminhtml/catalog_category_widget_chooser', '', array(
57 'id' => $uniqId.'Tree',
58 'node_click_listener' => $productsGrid->getCategoryClickListenerJs(),
59 'with_empty_node' => true
PhpFileCacheTest.php (https://bitbucket.org/thxer/5netproba.git) PHP · 149 lines
ContainerTest.php (https://gitlab.com/MotoSport/humbug) PHP · 124 lines
001.php (https://github.com/tstarling/hiphop-php.git) PHP · 190 lines
class.Subscriber.php (https://gitlab.com/oytunistrator/jobberbase) PHP · 253 lines
UuidHelper.php (https://github.com/marius-wieschollek/passwords.git) PHP · 74 lines
Index.php (https://github.com/Zhao-github/ApiAdmin.git) PHP · 49 lines
Compiler.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 278 lines
svn.php (https://github.com/agallou/atoum.git) PHP · 354 lines
91 ->and($this->newTestedInstance($adapter))
92 ->then
93 ->object($this->testedInstance->setUsername($username = uniqid()))->isTestedInstance
94 ->string($this->testedInstance->getUsername())->isEqualTo($username)
95 ->object($this->testedInstance->setUsername($username = rand(- PHP_INT_MAX, PHP_INT_MAX)))->isTestedInstance
107 )
108 ->then
109 ->object($this->testedInstance->setPassword($password = uniqid()))->isTestedInstance
110 ->string($this->testedInstance->getPassword())->isEqualTo($password)
111 ->object($this->testedInstance->setPassword($password = rand(- PHP_INT_MAX, PHP_INT_MAX)))->isTestedInstance
171 ->if(
172 $adapter->resetCalls(),
173 $adapter->svn_log = array(uniqid() => uniqid())
174 )
175 ->then
180 $adapter->resetCalls(),
181 $adapter->svn_log = array(
182 array('rev' => $revision1 = uniqid()),
183 array('rev' => $revision2 = uniqid()),
Configuration.php (https://bitbucket.org/viswanath608/outragebot.git) PHP · 129 lines
payment.php (https://gitlab.com/alexprowars/bitrix) PHP · 106 lines
GetSetCest.php (git://github.com/phalcon/cphalcon.git) PHP · 426 lines
phing.php (https://github.com/Hywan/atoum.git) PHP · 148 lines
83 ->and($adapter->class_exists = true)
84 ->and($testController = new atoum\mock\controller())
85 ->and($testController->getTestedClassName = uniqid())
86 ->and($test = new \mock\mageekguy\atoum\test($adapter))
87 ->and($test->getMockController()->getScore = $score)
102 ->and($adapter->class_exists = true)
103 ->and($testController = new atoum\mock\controller())
104 ->and($testController->getTestedClassName = uniqid())
105 ->and($test = new \mock\mageekguy\atoum\test($adapter))
106 ->and($test->getMockController()->getScore = $score)
109 ->and($customField->setPrompt($prompt = new prompt(uniqid())))
110 ->and($customField->setTitleColorizer($titleColorizer = new colorizer(uniqid(), uniqid())))
111 ->and($customField->setMemoryColorizer($memoryColorizer = new colorizer(uniqid(), uniqid())))
FormData.php (https://github.com/shama/cakephp.git) PHP · 175 lines
ReflectionClassResourceTest.php (https://github.com/deviantintegral/symfony.git) PHP · 185 lines
90 if (null === $expectedSignature) {
91 eval(sprintf($code, $class = 'Foo'.str_replace('.', '_', uniqid('', true))));
92 $r = new \ReflectionClass(ReflectionClassResource::class);
93 $generateSignature = $r->getMethod('generateSignature');
99 $code = explode("\n", $code);
100 $code[$changedLine] = $changedCode;
101 eval(sprintf(implode("\n", $code), $class = 'Foo'.str_replace('.', '_', uniqid('', true))));
102 $signature = implode("\n", iterator_to_array($generateSignature(new \ReflectionClass($class))));
cli.php (https://github.com/agallou/atoum.git) PHP · 192 lines
69 ->and($adapter->class_exists = true)
70 ->and($testController = new mock\controller())
71 ->and($testController->getTestedClassName = uniqid())
72 ->and($test = new \mock\mageekguy\atoum\test($adapter))
73 ->then
105 ->and($adapter->class_exists = true)
106 ->and($testController = new mock\controller())
107 ->and($testController->getTestedClassName = uniqid())
108 ->and($test = new \mock\mageekguy\atoum\test($adapter))
109 ->and($defaultField = new test\run\cli())
149 ->and($customField->setPrompt($prompt = new prompt(uniqid())))
150 ->and($customField->setColorizer($colorizer = new colorizer(uniqid(), uniqid())))
151 ->and($customField->setLocale($locale = new locale()))
152 ->then
submit.php (https://github.com/zykloid/feedbackreporter.git) PHP · 133 lines
Cloud.php (https://github.com/aminyazdanpanah/PHP-FFmpeg-video-streaming.git) PHP · 64 lines
41 public static function download(array $cloud, string $save_to = null): array
42 {
43 $prefix = $cloud['options']['Key'] ?? $cloud['options']['object_name'] ?? $cloud['options']['blob'] ?? uniqid('stream_', true);
44 list($save_to, $is_tmp) = $save_to ? [$save_to, false] : [File::tmp($prefix), true];
45 static::transfer($cloud, __FUNCTION__, $save_to);
session.class.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 80 lines
TranslationDebugCommandTest.php (https://github.com/fabpot/symfony.git) PHP · 210 lines
75 $this->fs->remove($this->translationDir);
76 $this->fs = new Filesystem();
77 $this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
78 $this->fs->mkdir($this->translationDir.'/translations');
79 $this->fs->mkdir($this->translationDir.'/templates');
125 {
126 $this->fs = new Filesystem();
127 $this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
128 $this->fs->mkdir($this->translationDir.'/translations');
129 $this->fs->mkdir($this->translationDir.'/templates');
TransactionInterfaceTest.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 106 lines
42 {
43 $adapter = $this->_getAdapterMock($class);
44 $uniqid = uniqid();
45 $adapter->expects($this->once())->method('beginTransaction')->will($this->returnValue($uniqid));
46 $this->assertSame(0, $adapter->getTransactionLevel());
47 $this->assertEquals($uniqid, $adapter->beginTransparentTransaction());
48 $this->assertSame(-1, $adapter->getTransactionLevel());
49 }
56 {
57 $adapter = $this->_getAdapterMock($class);
58 $uniqid = uniqid();
59 $adapter->expects($this->once())->method('rollback')->will($this->returnValue($uniqid));
70 {
71 $adapter = $this->_getAdapterMock($class);
72 $uniqid = uniqid();
73 $adapter->expects($this->once())->method('commit')->will($this->returnValue($uniqid));
compatibility.php (https://github.com/hgthirty/moodle.git) PHP · 173 lines
AwsS3Test.php (git://github.com/knplabs/Gaufrette.git) PHP · 191 lines
ezsubtreecache.php (https://github.com/zerustech/ezpublish.git) PHP · 159 lines
JACKED.php (http://poordecisions.googlecode.com/svn/web/PoorDecisions/trunk/) PHP · 161 lines
phpObject.php (https://github.com/Hywan/atoum.git) PHP · 76 lines
phpClass.php (https://github.com/Hywan/atoum.git) PHP · 81 lines
36 $constantIterator = new iterators\phpConstant(),
37 $constantIterator
38 ->append($token1 = new tokenizer\token(uniqid()))
39 ->append($token2 = new tokenizer\token(uniqid()))
53 $methodIterator = new iterators\phpMethod(),
54 $methodIterator
55 ->append($token1 = new tokenizer\token(uniqid()))
56 ->append($token2 = new tokenizer\token(uniqid()))
70 $propertyIterator = new iterators\phpProperty(),
71 $propertyIterator
72 ->append($token1 = new tokenizer\token(uniqid()))
73 ->append($token2 = new tokenizer\token(uniqid()))
file-upload.php (https://bitbucket.org/zym-works/hotel_system_api.git) PHP · 49 lines
UUIDUtil.php (https://github.com/xiebruce/PicUploader.git) PHP · 66 lines
TranslationDefaultDomainNodeVisitor.php (https://github.com/gimler/symfony.git) PHP · 134 lines
MCryptTest.php (https://github.com/carmenpopescu/Q.git) PHP · 185 lines
phing.php (https://github.com/agallou/atoum.git) PHP · 207 lines
102 ->and($adapter->class_exists = true)
103 ->and($testController = new mock\controller())
104 ->and($testController->getTestedClassName = uniqid())
105 ->and($testController->getScore = $score)
106 ->and($test = new \mock\mageekguy\atoum\test($adapter))
121 ->and($score->getMockController()->getTotalDuration = $runningDuration = rand(1, 1000) / 1000)
122 ->and($testController = new mock\controller())
123 ->and($testController->getTestedClassName = uniqid())
124 ->and($testController->getScore = $score)
125 ->and($test = new \mock\mageekguy\atoum\test($adapter))
Store.php (https://github.com/modularsoftware/genealogy.git) PHP · 57 lines
api.php (https://github.com/meanlumberjack/First-Estate.git) PHP · 353 lines
index.php (https://github.com/hugcoday/groupcotton_php.git) PHP · 58 lines
rememberme_model.php (https://github.com/eppak/emoncms.git) PHP · 212 lines
CallbackTest.php (https://github.com/ricardocasares/Cobros.git) PHP · 282 lines
cls_session.php (https://github.com/country3721/choclate.git) PHP · 290 lines
HTML.php (https://bitbucket.org/23289368/coursework2.git) PHP · 245 lines
Utility.php (https://github.com/etng/zf_tots.git) PHP · 217 lines
ContextTest.php (https://github.com/hyperf/hyperf.git) PHP · 73 lines
Cli.php (http://shozu.googlecode.com/svn/trunk/) PHP · 216 lines
helper.php (http://jfusion.googlecode.com/svn/trunk/) PHP · 161 lines
ConfigurationTest.php (https://bitbucket.org/marketing_alfatec/colette.git) PHP · 243 lines
order.php (https://github.com/TdroL/hurtex.git) PHP · 82 lines
User.php (https://github.com/brainwood/OrkestraApplicationBundle.git) PHP · 345 lines
GatewayTestCase.php (https://bitbucket.org/tecsecret/central-tecsecret.git) PHP · 354 lines
36 $getter = 'get'.ucfirst($this->camelCase($key));
37 $setter = 'set'.ucfirst($this->camelCase($key));
38 $value = uniqid();
40 $this->assertTrue(method_exists($this->gateway, $getter), "Gateway must implement $getter()");
190 $getter = 'get'.ucfirst($this->camelCase($key));
191 $setter = 'set'.ucfirst($this->camelCase($key));
192 $value = uniqid();
193 $this->gateway->$setter($value);
207 $getter = 'get'.ucfirst($this->camelCase($key));
208 $setter = 'set'.ucfirst($this->camelCase($key));
209 $value = uniqid();
210 $this->gateway->$setter($value);
RepositoryTest.php (https://github.com/awes-io/repository.git) PHP · 444 lines
BuilderAbstract.php (https://github.com/deathsta/xnova-legacies.git) PHP · 254 lines
Database.php (https://gitlab.com/Kewai/base) PHP · 423 lines
clover.php (https://github.com/agallou/atoum.git) PHP · 313 lines
Login.php (https://github.com/nick-bai/HappyChat.git) PHP · 60 lines
index.php (https://gitlab.com/issei-m/spike-php.git) PHP · 59 lines
append.php (https://github.com/ivebeenlinuxed/Boiler.git) PHP · 70 lines
cli.php (https://github.com/Yacodo/atoum.git) PHP · 246 lines
95 $testController = new mock\controller();
96 $testController->getTestedClassName = uniqid();
97 $testController->getScore = $score;
134 $testController = new mock\controller();
135 $testController->getTestedClassName = uniqid();
136 $testController->getScore = $score;
201 ;
203 $field = new test\duration\cli($prompt = new prompt(uniqid()), $titleColorizer = new colorizer(uniqid(), uniqid()), $durationColorizer = new colorizer(uniqid(), uniqid()), $locale = new locale());
205 $this->assert
sites.php (https://github.com/DanielnetoDotCom/YouPHPTube.git) PHP · 77 lines
TestCase.php (https://github.com/fabpot/composer.git) PHP · 155 lines
FileLoaderTest.php (git://github.com/concrete5/concrete5.git) PHP · 145 lines
Query.php (https://github.com/hunteryun/HunterPHP.git) PHP · 97 lines
BlobStorageSharedAccessTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 208 lines
70 $storageClient = $this->createAdministrativeStorageInstance();
71 for ($i = 1; $i <= self::$uniqId; $i++)
72 {
73 try { $storageClient->deleteContainer(TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOBSA_CONTAINER_PREFIX . $i); } catch (Exception $e) { }
114 }
116 protected static $uniqId = 0;
118 protected function generateName()
119 {
120 self::$uniqId++;
121 return TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOBSA_CONTAINER_PREFIX . self::$uniqId;
MonetaryAccountBankTest.php (https://github.com/bunq/sdk_php.git) PHP · 66 lines
Doc.php (http://kumbia-enterprise.googlecode.com/svn/trunk/) PHP · 84 lines
class-image.php (https://gitlab.com/pacificsky/redding-chamber) PHP · 351 lines
phpScript.php (https://github.com/tharkun/atoum.git) PHP · 370 lines
65 $constantIterator = new iterators\phpConstant();
66 $constantIterator
67 ->append($token1 = new tokenizer\token(uniqid()))
68 ->append($token2 = new tokenizer\token(uniqid()))
127 $classIterator = new iterators\phpClass();
128 $classIterator
129 ->append($token1 = new tokenizer\token(uniqid()))
130 ->append($token2 = new tokenizer\token(uniqid()))
189 $namespaceIterator = new iterators\phpNamespace();
190 $namespaceIterator
191 ->append($token1 = new tokenizer\token(uniqid()))
192 ->append($token2 = new tokenizer\token(uniqid()))
251 $importationIterator = new iterators\phpImportation();
252 $importationIterator
253 ->append($token1 = new tokenizer\token(uniqid()))
254 ->append($token2 = new tokenizer\token(uniqid()))