Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 161) sorted by relevance

1234567

/template/twigstarter/vendor/twig/twig/src/Node/Expression/Ternary/
DConditionalTernary.php23 …public function __construct(AbstractExpression $test, AbstractExpression $left, AbstractExpression… argument
25 if (!$test instanceof ReturnPrimitiveTypeInterface) {
26 $test = new TrueTest($test, new TwigTest('true'), null, $test->getTemplateLine());
29 parent::__construct(['test' => $test, 'left' => $left, 'right' => $right], [], $lineno);
/template/twigstarter/vendor/twig/twig/src/ExpressionParser/Infix/
DIsExpressionParser.php40 $test = $parser->getTest($token->getLine());
43 if ($stream->test(Token::OPERATOR_TYPE, '(')) {
45 } elseif ($test->hasOneMandatoryArgument()) {
49 …if ('defined' === $test->getName() && $expr instanceof NameExpression && null !== $alias = $parser…
53 $ready = $test instanceof TwigTest;
54 if (!isset($this->readyNodes[$class = $test->getNodeClass()])) {
62 …return new $class($expr, $ready ? $test : $test->getName(), $arguments, $stream->getCurrent()->get…
DDotExpressionParser.php53 $token->test(Token::NAME_TYPE)
54 || $token->test(Token::NUMBER_TYPE)
55 … || ($token->test(Token::OPERATOR_TYPE) && preg_match(Lexer::REGEX_NAME, $token->getValue()))
63 if ($stream->test(Token::OPERATOR_TYPE, '(')) {
/template/twigstarter/vendor/twig/twig/src/ExpressionParser/Prefix/
DLiteralExpressionParser.php37 case $token->test(Token::NAME_TYPE):
59 case $token->test(Token::NUMBER_TYPE):
64 case $token->test(Token::STRING_TYPE):
65 case $token->test(Token::INTERPOLATION_START_TYPE):
68 case $token->test(Token::PUNCTUATION_TYPE):
78 case $token->test(Token::OPERATOR_TYPE):
152 while (!$stream->test(Token::PUNCTUATION_TYPE, ']')) {
157 if ($stream->test(Token::PUNCTUATION_TYPE, ']')) {
164 if ($stream->test(Token::PUNCTUATION_TYPE, ',')) {
182 while (!$stream->test(Token::PUNCTUATION_TYPE, '}')) {
[all …]
DGroupingExpressionParser.php36 if (!$stream->test(Token::OPERATOR_TYPE, '=>')) {
44 if (!$stream->test(Token::PUNCTUATION_TYPE, ',')) {
58 if (!$stream->test(Token::OPERATOR_TYPE, '=>')) {
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
DTestExpression.php27 public function __construct(Node $node, string|TwigTest $test, ?Node $arguments, int $lineno) argument
38 if ($test instanceof TwigTest) {
39 $name = $test->getName();
41 $name = $test;
47 if ($test instanceof TwigTest) {
48 $this->setAttribute('twig_callable', $test);
DNullCoalesceExpression.php42 …$test = new DefinedTest(clone $left, new TwigTest('defined'), new EmptyNode(), $left->getTemplateL…
45 $test = new AndBinary(
46 $test,
52 parent::__construct($test, $left, $right, $lineno);
/template/twigstarter/vendor/twig/twig/src/Extension/
DStagingExtension.php87 public function addTest(TwigTest $test): void argument
89 if (isset($this->tests[$test->getName()])) {
90 … throw new \LogicException(\sprintf('Test "%s" is already registered.', $test->getName()));
93 $this->tests[$test->getName()] = $test;
/template/twigstarter/vendor/twig/twig/src/
DParser.php83 public function parse(TokenStream $stream, $test = null, bool $dropNeedle = false): ModuleNode argument
110 $body = $this->subparse($test, $dropNeedle);
159 public function subparseIgnoreUnknownTwigCallables($test, bool $dropNeedle = false): void argument
164 $this->subparse($test, $dropNeedle);
173 public function subparse($test, bool $dropNeedle = false): Node argument
179 case $this->stream->getCurrent()->test(Token::TEXT_TYPE):
184 case $this->stream->getCurrent()->test(Token::VAR_START_TYPE):
191 case $this->stream->getCurrent()->test(Token::BLOCK_START_TYPE):
195 if (!$token->test(Token::NAME_TYPE)) {
199 if (null !== $test && $test($token)) {
[all …]
DTokenStream.php69 return $this->tokens[$this->current]->test($primary, $secondary) ? $this->next() : null;
78 if (!$token->test($type, $value)) {
109 public function test($primary, $secondary = null): bool function in Twig\\TokenStream
111 return $this->tokens[$this->current]->test($primary, $secondary);
119 return $this->tokens[$this->current]->test(Token::EOF_TYPE);
DExtensionSet.php380 public function addTest(TwigTest $test): void argument
383 …sprintf('Unable to add test "%s" as extensions have already been initialized.', $test->getName()));
386 $this->staging->addTest($test);
411 foreach ($this->dynamicTests as $pattern => $test) {
415 return $test->withDynamicArguments($name, $test->getName(), $matches);
420 if (false !== $test = $callback($name)) {
421 return $test;
484 foreach ($extension->getTests() as $test) {
485 $this->tests[$name = $test->getName()] = $test;
487 … $this->dynamicTests['#^'.str_replace('\\*', '(.*?)', preg_quote($name, '#')).'$#'] = $test;
DExpressionParser.php139 if ($token->test(Token::PUNCTUATION_TYPE)) {
195 if (!$this->parser->getStream()->test(Token::OPERATOR_TYPE, '|')) {
234 while (!$stream->test(Token::PUNCTUATION_TYPE, ')')) {
239 if ($stream->test(Token::PUNCTUATION_TYPE, ')')) {
307 … if ($stream->test(Token::OPERATOR_TYPE) && preg_match(Lexer::REGEX_NAME, $token->getValue())) {
/template/comicslate/
Dscript.js22 if ( /:/ . test ( lpath ) ) window . location . pathname = lpath . replace ( /:/g, '/' );
67 …if ( /do=[^e]/ . test ( e . href ) ) e . className = e . className . replace ( 'wikilink2', 'wikil…
123 return /interrobang/ . test ( col_ul [ i ] . querySelector ( 'a' ) . title )
125 if ( /(\/menu[\?|#]?|do=admin)/ . test ( lhref ) ) {
146 if ( /\/(sci-fi|tlk|wolves|mlp|furry|gamer|other|interrobang)\// . test ( lhref ) ) {
149 !( /(\/[adh]\d+|[\?&](do=pre|rev=))/ . test ( lhref ) )
196 if ( /\/(d|h)\d+/ . test ( lhref ) ) {
216 if ( /do=export/ . test ( lhref ) ) {
220 if ( /hide=1/ . test ( lhref ) ) {
/template/twigstarter/vendor/twig/twig/src/Node/
DIfNode.php32 $test = $tests->getNode((string) $i);
33 if (!$test instanceof ReturnPrimitiveTypeInterface) {
34 … $tests->setNode($i, new TrueTest($test, new TwigTest('true'), null, $test->getTemplateLine()));
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Binary/
DNullCoalesceBinary.php35 …$test = new DefinedTest(clone $left, new TwigTest('defined'), new EmptyNode(), $left->getTemplateL…
38 $test = new AndBinary(
39 $test,
46 $this->setNode('test', $test);
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DTypesTokenParser.php50 … while (!($stream->test(Token::PUNCTUATION_TYPE, '}') || $stream->test(Token::BLOCK_END_TYPE))) {
55 … if ($stream->test(Token::PUNCTUATION_TYPE, '}') || $stream->test(Token::BLOCK_END_TYPE)) {
DGuardTokenParser.php36 if ('test' === $typeToken->getValue() && $stream->test(Token::NAME_TYPE)) {
67 return $token->test(['else', 'endguard']);
72 return $token->test(['endguard']);
DWithTokenParser.php33 if (!$stream->test(Token::BLOCK_END_TYPE)) {
49 return $token->test('endwith');
DAutoEscapeTokenParser.php32 if ($stream->test(Token::BLOCK_END_TYPE)) {
51 return $token->test('endautoescape');
DApplyTokenParser.php41 if (!$this->parser->getStream()->test(Token::OPERATOR_TYPE, '|')) {
59 return $token->test('endapply');
DMacroTokenParser.php64 return $token->test('endmacro');
77 while (!$stream->test(Token::PUNCTUATION_TYPE, ')')) {
82 if ($stream->test(Token::PUNCTUATION_TYPE, ')')) {
/template/twigstarter/vendor/twig/twig/src/Test/
DIntegrationTestCase.php168 $test = file_get_contents($file->getRealpath());
170 …MPLATE(?:\(.*?\))?--(?:.*?))+)\s*(?:--DATA--\s*(.*))?\s*--EXCEPTION--\s*(.*)/sx', $test, $match)) {
177 …N--\s*(.*?))?\s*((?:--TEMPLATE(?:\(.*?\))?--(?:.*?))+)--DATA--.*?--EXPECT--.*/s', $test, $match)) {
183 …'/--DATA--(.*?)(?:--CONFIG--(.*?))?--EXPECT--(.*?)(?=\-\-DATA\-\-|$)/s', $test, $outputs, \PREG_SE…
250 foreach ($this->getTwigTests() as $test) {
251 $twig->addTest($test);
341 protected static function parseTemplates($test) argument
344 …preg_match_all('/--TEMPLATE(?:\((.*?)\))?--(.*?)(?=\-\-TEMPLATE|$)/s', $test, $matches, \PREG_SET_…
/template/prsnl10/js/iepngfix/
Diepngfix.htc35 src && !(/IMG|INPUT/.test(elm.nodeName) && (t != 2)) &&
75 !/MSIE (5\.5|6)/.test(navigator.userAgent) ||
87 isSrc = /src/.test(evt.propertyName),
88 isBg = /backgroundImage/.test(evt.propertyName),
89 isPos = /width|height|background(Pos|Rep)/.test(evt.propertyName),
112 if ((/\.png/i).test(elm.src)) {
176 if (t && (/relative|absolute/i).test(elm.currentStyle.position)) {
181 if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) {
/template/mnml-blog/js/iepngfix/
Diepngfix.htc35 src && !(/IMG|INPUT/.test(elm.nodeName) && (t != 2)) &&
75 !/MSIE (5\.5|6)/.test(navigator.userAgent) ||
87 isSrc = /src/.test(evt.propertyName),
88 isBg = /backgroundImage/.test(evt.propertyName),
89 isPos = /width|height|background(Pos|Rep)/.test(evt.propertyName),
112 if ((/\.png/i).test(elm.src)) {
176 if (t && (/relative|absolute/i).test(elm.currentStyle.position)) {
181 if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) {
/template/ospyramid/js/libs/
Dmodernizr-1.7.min.js2test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.ge…

1234567