/php-src/ext/dom/tests/ |
H A D | bug80332_1.phpt | 46 Attribute [0] name: attr1 47 Attribute [0] value: value1 48 Attribute [0] isset: yes 56 Attribute [true] isset: yes 60 Attribute [null] isset: yes 66 Attribute ['hi'] name: / 67 Attribute ['hi'] value: / 68 Attribute ['hi'] isset: no 70 Attribute ['0'] name: attr1 72 Attribute ['0'] isset: yes [all …]
|
H A D | domelement.phpt | 22 echo 'Attribute num exists?: '.($node->hasAttribute('num')?'Yes':'No')."\n"; 25 echo 'Attribute num exists?: '.($node->hasAttribute('num')?'Yes':'No')."\n"; 38 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', … 42 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', … 90 Attribute num exists?: Yes 92 Attribute num exists?: No 99 Attribute xml:lang exists?: Yes 101 Attribute xml:lang exists?: No
|
/php-src/Zend/tests/attributes/ |
H A D | 020_userland_attribute_validation.phpt | 6 #[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] 11 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 18 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_CLASS, $attr->isRepeated()); 30 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 40 #[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] 45 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_CLASS, $attr->isRepeated()); 59 string(70) "Attribute "A1" cannot target class (allowed targets: function, method)" 65 string(35) "Attribute "A1" must not be repeated"
|
H A D | 007_self_reflect_attribute.phpt | 2 Attributes: attributes on Attribute return itself 6 $reflection = new \ReflectionClass(Attribute::class); 15 var_dump($a->flags == Attribute::TARGET_CLASS); 19 string(9) "Attribute" 24 string(9) "Attribute"
|
H A D | 025_internal_repeatable_validation.phpt | 6 #[Attribute] 7 #[Attribute] 12 Fatal error: Attribute "Attribute" must not be repeated in %s
|
H A D | 008_wrong_attribution.phpt | 2 Attributes: Prevent Attribute on non classes 6 #[Attribute] 10 Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
|
H A D | 024_internal_target_validation.phpt | 6 #[Attribute] 11 Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s
|
H A D | 021_attribute_flags_type_is_validated.phpt | 2 Attribute flags type is validated. 6 #[Attribute("foo")] 20 Attribute::__construct(): Argument #1 ($flags) must be of type int, string given
|
H A D | 032_attribute_validation_scope.phpt | 2 Validation for "Attribute" uses the class scope when evaluating constant ASTs 5 #[Attribute(parent::x)] 9 protected const x = Attribute::TARGET_CLASS;
|
H A D | 033_attribute_flags_type_is_not_validated_at_comp_time.phpt | 2 Attribute flags type is not validated at compile time. 6 #[Attribute("foo")]
|
H A D | 022_attribute_flags_value_is_validated.phpt | 2 Attribute flags value is validated. 6 #[Attribute(-1)]
|
H A D | 023_ast_node_in_validation.phpt | 2 Attribute flags value is validated. 6 #[Attribute(Foo::BAR)]
|
/php-src/ext/reflection/tests/ |
H A D | gh8982.phpt | 2 GH-8982 (Attribute target validation fails when read via ReflectionFunction) 6 #[Attribute(Attribute::TARGET_FUNCTION)] 11 #[Attribute(Attribute::TARGET_METHOD)] 49 Attribute "M" cannot target function (allowed targets: method) 50 Attribute "F" cannot target method (allowed targets: function)
|
H A D | ReflectionAttribute_toString.phpt | 18 Attribute [ Foo ] 19 Attribute [ Bar ] { 25 Attribute [ Baz ] { 31 Attribute [ X ] { 36 Attribute [ Y ] {
|
/php-src/ext/xmlreader/tests/ |
H A D | 004.phpt | 24 echo " Attribute Name: ".$reader->name."\n"; 25 echo " Attribute Value: ".$reader->value."\n"; 37 Attribute Name: num 38 Attribute Value: 1 39 Attribute Name: idx 40 Attribute Value: 2
|
/php-src/ext/dom/tests/modern/html/parser/ |
H A D | HTMLDocument_createFromString_namespaced_attributes.phpt | 23 echo "Attribute: \n"; 30 Attribute: 34 Attribute: 38 Attribute: 42 Attribute: 46 Attribute:
|
H A D | predefined_namespaces.phpt | 35 echo " Attribute: ", $attribute->nodeName, " ", $attribute->namespaceURI ?? "(NONE)", "\n"; 48 Attribute: width (NONE) 49 Attribute: height (NONE) 50 Attribute: viewbox (NONE) 52 Attribute: id (NONE) 53 Attribute: x (NONE) 54 Attribute: y (NONE) 55 Attribute: width (NONE) 56 Attribute: height (NONE) 61 Attribute: id (NONE)
|
/php-src/Zend/tests/named_params/ |
H A D | attributes_named_flags.phpt | 2 Named flags parameter for Attribute attribute 6 #[Attribute(flags: Attribute::TARGET_CLASS)] 17 Fatal error: Uncaught Error: Attribute "MyAttribute" cannot target function (allowed targets: class…
|
H A D | attributes_named_flags_incorrect.phpt | 2 Named flags parameter for Attribute attribute (incorrect parameter name) 7 #[Attribute(not_flags: Attribute::TARGET_CLASS)] 18 Fatal error: Uncaught Error: Attribute "MyAttribute" cannot target function (allowed targets: class…
|
/php-src/ext/zend_test/tests/ |
H A D | gh13970.phpt | 2 GH-13970 (Incorrect validation of #[\Attribute]'s first parameter) 7 #[Attribute(\ZendTestUnitEnum::Foo)] 22 Attribute::__construct(): Argument #1 ($flags) must be of type int, ZendTestUnitEnum given
|
/php-src/Zend/tests/property_hooks/ |
H A D | attributes.phpt | 6 #[Attribute] 9 #[Attribute(Attribute::TARGET_METHOD)]
|
/php-src/Zend/tests/prop_const_expr/ |
H A D | attributes.phpt | 12 #[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
|
/php-src/Zend/tests/first_class_callable/ |
H A D | first_class_callable_011.phpt | 2 First Class Callable Attribute Error 5 #[Attribute(...)]
|
/php-src/Zend/tests/enum/ |
H A D | case-attributes.phpt | 6 #[Attribute(Attribute::TARGET_CLASS_CONSTANT)]
|
/php-src/ext/intl/tests/ |
H A D | formatter_get_set_text_attribute_var2.phpt | 83 Attribute POSITIVE_PREFIX 89 Attribute POSITIVE_SUFFIX 95 Attribute NEGATIVE_PREFIX 101 Attribute NEGATIVE_SUFFIX 107 Attribute PADDING_CHARACTER 113 Attribute POSITIVE_PREFIX-2
|