PageRenderTime 105ms queryFilters 1ms Sphinxql 49ms app.CodeModel.GetByIds 18ms findMatchingLines 17ms GetByIds 35ms meta 0ms repositoryFilters 20ms languageFilters 0ms sourceFilters 1ms

57,941 results for 'uniqid' (105 ms)

Source

Language

Repository

score.php git://github.com/mageekguy/atoum.git | PHP | 1,189 lines
782				)
783			->if($score->addError($file = uniqid(), $class = uniqid(), $method = uniqid(), $line = rand(1, PHP_INT_MAX), $type = rand(E_ERROR, E_USER_DEPRECATED), $message = uniqid(), $errorFile = uniqid(), $errorLine = rand(1, PHP_INT_MAX), $case = uniqid(), $dataSetKey = uniqid(), $dataSetProvider = uniqid()))
784			->then
823				)
824			->if($score->addException($otherFile = uniqid(), $otherClass = uniqid(), $otherMethod = uniqid(), $otherLine = rand(1, PHP_INT_MAX), $otherException = new \exception(), $case = uniqid(), $dataSetKey = uniqid(), $dataSetProvider = uniqid()))
825			->then
948				->array($score->getMethodsWithError())->isEqualTo(array($class => array($classMethod, $classOtherMethod)))
949			->if($score->addError(uniqid(), $otherClass = uniqid(), $otherClassMethod = uniqid(), rand(1, PHP_INT_MAX), rand(1, PHP_INT_MAX), uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
950			->then
1127				->integer($score->errorExists($message, $type))->isEqualTo(0)
1128			->if($score->addError(uniqid(), uniqid(), uniqid(), rand(1, PHP_INT_MAX), $type, $otherMessage = uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
1129			->then
1157				->integer($score->errorExists(null, $otherType))->isEqualTo(2)
1158			->if($score->addError(uniqid(), uniqid(), uniqid(), rand(1, PHP_INT_MAX), $otherType, $pattern = uniqid() . 'FOO' . uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
1159			->then
coverage.php git://github.com/mageekguy/atoum.git | PHP | 1,373 lines
101			->and($methodController->getFileName = $classFile)
102			->and($classController->getMethods = array($method = new \mock\reflectionMethod(uniqid(), uniqid(), $methodController)))
103			->and($classDirectory = uniqid())
340			->and($methodController->getEndLine = 8)
341			->and($method = new \mock\reflectionMethod(uniqid(), uniqid(), $methodController))
342			->and($classController->getMethod = function() use ($method) { return $method; })
1187			->then
1188				->variable($coverage->getValueForMethod(uniqid(), uniqid()))->isNull()
1189				->variable($coverage->getValueForMethod($className, uniqid()))->isNull()
1216			->and($methodController->getEndLine = 8)
1217			->and($classController->getMethods = array(new \mock\reflectionMethod(uniqid(), uniqid(), $methodController)))
1218			->and($classFile = uniqid())
1369				->boolean($coverage->isInExcludedDirectories($directory . DIRECTORY_SEPARATOR . uniqid()))->isTrue()
1370				->boolean($coverage->isInExcludedDirectories($directory . uniqid() . DIRECTORY_SEPARATOR . uniqid()))->isFalse()
1371		;
phpArray.php git://github.com/mageekguy/atoum.git | PHP | 1,207 lines
539
540			->if($asserter->setWith(array(uniqid(), uniqid(), $isInArray = uniqid(), uniqid(), uniqid())))
541			->then
800
801			->if($asserter->setWith(array(uniqid(), uniqid(), uniqid(), uniqid(), uniqid(), '5' => uniqid())))
802			->then
832				$this->calling($analyzer)->getTypeOf = $keyType = uniqid(),
833				$asserter->setWith(array(uniqid(), uniqid(), uniqid(), uniqid(), uniqid()))
834			)
869				$this->calling($analyzer)->getTypeOf = $keysType = uniqid(),
870				$asserter->setWith(array(uniqid(), uniqid(), uniqid(), uniqid(), uniqid()))
871			)
914
915			->if($asserter->setWith(array(uniqid(), uniqid(), uniqid(), uniqid(), uniqid())))
916			->then
controller.php git://github.com/mageekguy/atoum.git | PHP | 788 lines
27		$this
28			->if($streamController = new testedClass($stream = uniqid()))
29			->then
113				->object($streamController->stat)->isEqualTo(new stream\invoker('url_stat'))
114			->if($method = uniqid())
115			->then
127		$this
128			->if($streamController = new testedClass(uniqid()))
129			->and($streamController->__construct = $__construct = uniqid())
702				->string($streamController->getBasename())->isEqualTo($basename)
703			->if($streamController = new testedClass(uniqid() . '://' . ($basename = uniqid())))
704			->then
705				->string($streamController->getBasename())->isEqualTo($basename)
706			->if($streamController = new testedClass(uniqid() . '://' . uniqid() . DIRECTORY_SEPARATOR . ($basename = uniqid())))
707			->then
cli.php git://github.com/mageekguy/atoum.git | PHP | 750 lines
143			->and($defaultField = new runner\errors\cli())
144			->and($customField = new runner\errors\cli($titlePrompt = new prompt(uniqid()), $titleColorizer = new colorizer(uniqid(), uniqid()), $methodPrompt = new prompt(uniqid()), $methodColorizer = new colorizer(uniqid(), uniqid()), $errorPrompt = new prompt(uniqid()), $errorColorizer = new colorizer(uniqid(), uniqid()), $locale = new atoum\locale()))
145			->and($score->getMockController()->getErrors = array())
265						'type' => $otherType = rand(1, PHP_INT_MAX),
266						'message' => ($firstOtherMessage = uniqid()) . PHP_EOL . ($secondOtherMessage = uniqid()),
267						'errorFile' => $otherErrorFile = uniqid(),
660			->and($customField->setErrorPrompt($errorPrompt = new prompt(uniqid())))
661			->and($customField->setErrorColorizer($errorColorizer = new colorizer(uniqid(), uniqid())))
662			->and($customField->setLocale($locale = new atoum\locale()))
715			->and($customField->setTitlePrompt($titlePrompt = new prompt(uniqid())))
716			->and($customField->setTitleColorizer($titleColorizer = new colorizer(uniqid(), uniqid())))
717			->and($customField->setMethodPrompt($methodPrompt = new prompt(uniqid())))
717			->and($customField->setMethodPrompt($methodPrompt = new prompt(uniqid())))
718			->and($customField->setMethodColorizer($methodColorizer = new colorizer(uniqid(), uniqid())))
719			->and($customField->setErrorPrompt($errorPrompt = new prompt(uniqid())))
script.php git://github.com/mageekguy/atoum.git | PHP | 633 lines
559						array(
560							$label1 = uniqid() => $message1 = uniqid(),
561							$label2 = uniqid() => $message2 = uniqid(),
574							$label2 = '  ' . uniqid() => $message2 = uniqid(),
575							$label3 = uniqid() => $message3 = uniqid()
576						)
584				->object($script->writeLabels(array(
585							$label1 = uniqid() => $message1 = uniqid(),
586							$label2 = 'xx' . uniqid() => $message2 = uniqid(),
586							$label2 = 'xx' . uniqid() => $message2 = uniqid(),
587							$label3 = uniqid() => $message3 = uniqid()
588						), 3
597							$label1 = uniqid() => $message1 = uniqid(),
598							$label2 = 'xx' . uniqid() => ($message21 = uniqid()) . PHP_EOL . ($message22 = uniqid()),
599							$label3 = uniqid() => $message3 = uniqid()
test.php git://github.com/mageekguy/atoum.git | PHP | 1,098 lines
960					->variable($test->getScore()->errorExists($errstr, E_NOTICE))->isNotNull()
961					->boolean($test->errorHandler(E_WARNING, $errstr = uniqid(), uniqid(), rand(1, PHP_INT_MAX), uniqid()))->isTrue()
962					->variable($test->getScore()->errorExists($errstr, E_WARNING))->isNotNull()
962					->variable($test->getScore()->errorExists($errstr, E_WARNING))->isNotNull()
963					->boolean($test->errorHandler(E_USER_NOTICE, $errstr = uniqid(), uniqid(), rand(1, PHP_INT_MAX), uniqid()))->isTrue()
964					->variable($test->getScore()->errorExists($errstr, E_USER_NOTICE))->isNotNull()
964					->variable($test->getScore()->errorExists($errstr, E_USER_NOTICE))->isNotNull()
965					->boolean($test->errorHandler(E_USER_WARNING, $errstr = uniqid(), uniqid(), rand(1, PHP_INT_MAX), uniqid()))->isTrue()
966					->variable($test->getScore()->errorExists($errstr, E_USER_WARNING))->isNotNull()
966					->variable($test->getScore()->errorExists($errstr, E_USER_WARNING))->isNotNull()
967					->boolean($test->errorHandler(E_DEPRECATED, $errstr = uniqid(), uniqid(), rand(1, PHP_INT_MAX), uniqid()))->isTrue()
968					->variable($test->getScore()->errorExists($errstr, E_DEPRECATED))->isNull()
970				->then
971					->boolean($test->errorHandler(E_RECOVERABLE_ERROR, $errstr = uniqid(), uniqid(), rand(1, PHP_INT_MAX), uniqid()))->isTrue()
972					->variable($test->getScore()->errorExists($errstr, E_RECOVERABLE_ERROR))->isNull()
mock.php git://github.com/mageekguy/atoum.git | PHP | 1,069 lines
84					->setAnalyzer($analyzer = new \mock\atoum\tools\variable\analyzer()),
85				$this->calling($locale)->_ = $notMock = uniqid(),
86				$this->calling($analyzer)->getTypeOf = $type = uniqid()
111						->setLocale($locale = new \mock\atoum\locale()),
112					$this->calling($locale)->_ = $wasNotCalled = uniqid(),
113					$this->calling($controller)->getCallsNumber = 0,
113					$this->calling($controller)->getCallsNumber = 0,
114					$this->calling($controller)->getMockClass = $mockClass = uniqid()
115				)
360
361				->object($asserter->withArguments($arg1 = uniqid(), $arg2 = uniqid()))->isIdenticalTo($asserter)
362				->string($asserter->getLastAssertionFile())->isEqualTo(__FILE__)
402
403				->object($asserter->disableEvaluationChecking()->withAtLeastArguments($arguments = array(2 => uniqid(), 5 => uniqid())))->isIdenticalTo($asserter)
404				->string($asserter->getLastAssertionFile())->isEqualTo(__FILE__)
string.php git://github.com/mageekguy/atoum.git | PHP | 592 lines
127
128				->exception(function() use ($asserter, & $secondString, & $failMessage) { $asserter->isEqualTo($secondString = uniqid(), $failMessage = uniqid()); })
129					->isInstanceOf('mageekguy\atoum\asserter\exception')
379
380				->exception(function() use ($asserter, & $failMessage) { $asserter->contains(uniqid(), $failMessage = uniqid()); })
381					->isInstanceOf('mageekguy\atoum\asserter\exception')
383
384			->if($asserter->setWith(uniqid() . $string . uniqid()))
385			->then
445
446				->exception(function() use ($asserter, & $failMessage) { $asserter->startWith(uniqid(), $failMessage = uniqid()); })
447					->isInstanceOf('mageekguy\atoum\asserter\exception')
519
520				->exception(function() use ($asserter, & $failMessage) { $asserter->endWith(uniqid(), $failMessage = uniqid()); })
521					->isInstanceOf('mageekguy\atoum\asserter\exception')
phpClass.php git://github.com/mageekguy/atoum.git | PHP | 547 lines
187
188				->exception(function() use ($asserter, & $failMessage) { $asserter->hasParent(uniqid(), $failMessage = uniqid()); })
189					->isInstanceOf('mageekguy\atoum\asserter\exception')
293
294				->exception(function() use ($asserter, & $failMessage) { $asserter->extends(uniqid(), $failMessage = uniqid()); })
295					->isInstanceOf('mageekguy\atoum\asserter\exception')
352
353				->exception(function() use ($asserter, & $failMessage) { $asserter->implements(uniqid(), $failMessage = uniqid()); })
354					->isInstanceOf('mageekguy\atoum\asserter\exception')
490
491				->exception(function() use ($asserter, & $failMessage) { $asserter->hasMethod(uniqid(), $failMessage = uniqid()); })
492					->isInstanceOf('mageekguy\atoum\asserter\exception')
531
532				->exception(function() use ($asserter, & $failMessage) { $asserter->hasConstant(uniqid(), $failMessage = uniqid()); })
533					->isInstanceOf('mageekguy\atoum\asserter\exception')
error.php git://github.com/mageekguy/atoum.git | PHP | 339 lines
113
114			->if($asserter->getScore()->addError(uniqid(), uniqid(), uniqid(), rand(1, PHP_INT_MAX), rand(0, PHP_INT_MAX), uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
115			->then
159
160			->if($asserter->getScore()->addError(uniqid(), uniqid(), uniqid(), rand(1, PHP_INT_MAX), rand(1, PHP_INT_MAX), $message = uniqid() . 'FOO' . uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
161			->and($asserter->withPattern('/FOO/')->withType(null))
181
182			->if($asserter->getScore()->addError(uniqid(), uniqid(), uniqid(), rand(1, PHP_INT_MAX), rand(0, PHP_INT_MAX), uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
183			->then
239
240			->if($asserter->getScore()->addError(uniqid(), uniqid(), uniqid(), rand(1, PHP_INT_MAX), $type, uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
241			->then
247
248			->if($asserter->getScore()->addError(uniqid(), uniqid(), uniqid(), rand(1, PHP_INT_MAX), rand(1, PHP_INT_MAX), $message = uniqid() . 'FOO' . uniqid(), uniqid(), rand(1, PHP_INT_MAX)))
249			->and($asserter->withPattern('/FOO/')->withType(null))
iterator.php git://github.com/mageekguy/atoum.git | PHP | 850 lines
41				->castToString($this->testedInstance)->isEmpty()
42			->if($this->testedInstance->append($token1 = new tokenizer\token(uniqid())))
43			->then
46				->integer($this->testedInstance->key())->isZero()
47			->if($this->testedInstance->append($token2 = new tokenizer\token(uniqid(), rand(1, PHP_INT_MAX)))->end())
48			->then
53				$innerInnerIterator = new tokenizer\iterator(),
54				$innerInnerIterator->append($token3 = new tokenizer\token(uniqid())),
55				$innerIterator = new tokenizer\iterator(),
56				$innerIterator
57					->append($token2 = new tokenizer\token(uniqid()))
58					->append($innerInnerIterator),
60				$this->testedInstance
61					->append($token1 = new tokenizer\token(uniqid()))
62					->append($innerIterator)
parser.php git://github.com/mageekguy/atoum.git | PHP | 542 lines
379
380				->object($root = $parser->parseString('<' . template\parser::defaultNamespace . ':' . ($tag = uniqid()) . '>' . ($data = uniqid()) . '</' . template\parser::defaultNamespace . ':' . $tag . '>'))->isInstanceOf('mageekguy\atoum\template')
381				->array($root->getChildren())->hasSize(1)
388
389				->object($root = $parser->parseString(($string1 = uniqid()) . '<' . template\parser::defaultNamespace . ':' . ($tag = uniqid()) . '>' . ($data = uniqid()) . '</' . template\parser::defaultNamespace . ':' . $tag . '>' . ($string2 = uniqid())))->isInstanceOf('mageekguy\atoum\template')
390				->array($root->getChildren())->hasSize(3)
400
401				->object($root = $parser->parseString(($string1 = uniqid()) . '<' . template\parser::defaultNamespace . ':' . ($tag = uniqid()) . ' id="' . ($id = uniqid()) . '">' . ($data = uniqid()) . '</' . template\parser::defaultNamespace . ':' . $tag . '>' . ($string2 = uniqid())))->isInstanceOf('mageekguy\atoum\template')
402				->array($root->getChildren())->hasSize(3)
502				->integer($root->getChild(0)->getOffset())->isEqualTo(1)
503			->if($adapter->file_get_contents = ($string1 = uniqid()) . '<' . template\parser::defaultNamespace . ':' . ($tag = uniqid()) . '>' . ($data = uniqid()) . '</' . template\parser::defaultNamespace . ':' . $tag . '>' . ($string2 = uniqid()))
504			->then
515				->string($root->getChild(2)->getData())->isEqualTo($string2)
516			->if($adapter->file_get_contents = ($string1 = uniqid()) . '<' . template\parser::defaultNamespace . ':' . ($tag = uniqid()) . ' id="' . ($id = uniqid()) . '">' . ($data = uniqid()) . '</' . template\parser::defaultNamespace . ':' . $tag . '>' . ($string2 = uniqid()))
517			->then
builder.php git://github.com/mageekguy/atoum.git | PHP | 664 lines
43		$this
44			->if($builder = new testedClass($name = uniqid()))
45			->then
63				->variable($builder->getTaggerEngine())->isNull()
64			->if($builder = new testedClass($name = uniqid(), $adapter = new atoum\adapter()))
65			->then
89		$this
90			->if($builder = new testedClass(uniqid()))
91			->then
103		$this
104			->if($builder = new testedClass(uniqid()))
105			->then
105			->then
106				->object($builder->setVersion($tag = uniqid()))->isIdenticalTo($builder)
107				->string($builder->getVersion())->isIdenticalTo($tag)
html.php git://github.com/mageekguy/atoum.git | PHP | 525 lines
298		$this
299			->if($field = new testedClass(uniqid(), uniqid()))
300			->then
350		$this
351			->if($field = new testedClass(uniqid(), uniqid(), uniqid()))
352			->then
465		$this
466			->if($field = new testedClass(uniqid(), uniqid(), uniqid()))
467			->then
491		$this
492			->if($field = new testedClass(uniqid(), uniqid(), uniqid()))
493			->and($reflectionClassController = new mock\controller())
510		$this
511			->if($field = new testedClass(uniqid(), uniqid(), uniqid()))
512			->then
cli.php git://github.com/mageekguy/atoum.git | PHP | 335 lines
115			->and($customField->setTitlePrompt($titlePrompt = new prompt(uniqid())))
116			->and($customField->setTitleColorizer($titleColorizer = new colorizer(uniqid(), uniqid())))
117			->and($customField->setMethodPrompt($methodPrompt = new prompt(uniqid())))
158			->and($customField->setTitlePrompt($titlePrompt = new prompt(uniqid())))
159			->and($customField->setTitleColorizer($titleColorizer = new colorizer(uniqid(), uniqid())))
160			->and($customField->setMethodPrompt($methodPrompt = new prompt(uniqid())))
226			->and($customField->setMethodPrompt($methodPrompt = new prompt(uniqid())))
227			->and($customField->setMethodColorizer($methodColorizer = new colorizer(uniqid(), uniqid())))
228			->and($customField->setLocale($locale = new atoum\locale()))
292			->and($customField->setTitlePrompt($titlePrompt = new prompt(uniqid())))
293			->and($customField->setTitleColorizer($titleColorizer = new colorizer(uniqid(), uniqid())))
294			->and($customField->setMethodPrompt($methodPrompt = new prompt(uniqid())))
294			->and($customField->setMethodPrompt($methodPrompt = new prompt(uniqid())))
295			->and($customField->setMethodColorizer($methodColorizer = new colorizer(uniqid(), uniqid())))
296			->and($customField->setLocale($locale = new atoum\locale()))
template.php git://github.com/mageekguy/atoum.git | PHP | 662 lines
18				->string($this->testedInstance->getData())->isEmpty()
19			->if($this->newTestedInstance($data = uniqid()))
20			->then
33				->variable($this->testedInstance->getTag())->isNull()
34			->if($this->newTestedInstance($data = uniqid()))
35			->then
47			->then
48				->object($iterator = $this->testedInstance->{uniqid()})->isInstanceOf('mageekguy\atoum\template\iterator')
49				->sizeOf($iterator)->isZero()
49				->sizeOf($iterator)->isZero()
50			->if($this->testedInstance->addChild($childTag = new atoum\template\tag(uniqid())))
51			->then
60				->object($iterator->next()->current())->isIdenticalTo($otherChildTag)
61			->if($this->testedInstance->addChild($anotherChildTag = new atoum\template\tag(uniqid())))
62			->then
adapter.php git://github.com/mageekguy/atoum.git | PHP | 923 lines
50			->if(
51				$this->calling($locale)->_ = $notAnAdapter = uniqid(),
52				$this->calling($analyzer)->getTypeOf = $type = uniqid()
54			->then
55				->exception(function($test) use (& $value) { $test->testedInstance->setWith($value = uniqid()); })
56					->isInstanceOf('mageekguy\atoum\asserter\exception')
83
84			->if($adapter->md5(uniqid()))
85			->then
99			->then
100				->exception(function($test) { $test->testedInstance->call(uniqid()); })
101					->isInstanceOf('mageekguy\atoum\asserters\adapter\exceptions\logic')
138				->object($this->testedInstance->getCall())->isEqualTo(new test\adapter\call($function, array($arg1)))
139				->object($this->testedInstance->disableEvaluationChecking()->withArguments($arg1 = uniqid(), $arg2 = uniqid()))->isTestedInstance
140				->object($this->testedInstance->getCall())->isEqualTo(new test\adapter\call($function, array($arg1, $arg2)))
variable.php git://github.com/mageekguy/atoum.git | PHP | 626 lines
64			->then
65				->object($this->testedInstance->{$asserterClass = uniqid()})->isIdenticalTo($asserterInstance)
66				->mock($generator)->call('__get')->withArguments($asserterClass)->once
74
75			->if($this->testedInstance->setWith(uniqid()))
76			->then
82			->if(
83				$reference = uniqid(), // Mandatory because "Only variables should be passed by reference"
84				$this->testedInstance->setByReferenceWith($reference)
98
99			->if($value = uniqid())
100			->then
111
112			->if($value = uniqid())
113			->then
runner.php git://github.com/mageekguy/atoum.git | PHP | 1,020 lines
390				->array($runner->getArguments())->isEmpty()
391				->object($runner->setArguments($arguments = array(uniqid(), uniqid(), uniqid())))->isIdenticalTo($runner)
392				->array($runner->getArguments())->isEqualTo($arguments)
583			->then
584				->object($script->addTests(array($testPath1 = uniqid(), $testPath2 = uniqid())))->isIdenticalTo($script)
585				->mock($runner)
637			->then
638				->object($script->addTestsFromPatterns(array($pattern1 = uniqid(), $pattern2 = uniqid())))->isIdenticalTo($script)
639				->mock($runner)
652			->then
653				->object($script->acceptTestFileExtensions($testFileExtensions = array(uniqid(), uniqid())))->isIdenticalTo($script)
654				->mock($runner)->call('acceptTestFileExtensions')->withArguments($testFileExtensions)->once()
779				->array($runner->getDefaultArguments())->isEqualTo(array($arg1))
780				->object($runner->addDefaultArguments($arg2 = uniqid(), $arg3 = uniqid()))->isInstanceOf($runner)
781				->boolean($runner->hasDefaultArguments())->isTrue()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21