<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PropertyTypeHandlingTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">

    <rule ref="./tests/Core/Ruleset/Fixtures/TestStandard/Sniffs/SetProperty/PropertyTypeHandlingSniff.php">
        <properties>
            <property name="expectsString" value="arbitraryvalue"/>
            <property name="emptyStringBecomesNull" value="   	"/>

            <property name="expectsIntButAcceptsString" value="12345"/>
            <property name="expectsFloatButAcceptsString" value="12.345"/>

            <property name="expectsNull" value="null"/>
            <property name="expectsNullCase" value="NULL"/>

            <property name="expectsBooleanTrue" value="true"/>
            <property name="expectsBooleanTrueCase" value="True"/>
            <property name="expectsBooleanFalse" value="false"/>
            <property name="expectsBooleanFalseCase" value="fALSe"/>

            <property name="expectsArrayWithOnlyValues" type="array">
                <element value="string"/>
                <element value="10"/>
                <element value="1.5"/>
                <element value="null"/>
                <element value="true"/>
                <element value="false"/>
            </property>

            <property name="expectsArrayWithKeysAndValues" type="array">
                <element key="string" value="string"/>
                <element key="10" value="10"/>
                <element key="float" value="1.5"/>
                <element key="null" value="null"/>
                <element key="true" value="true"/>
                <element key="false" value="false"/>
            </property>

            <property name="expectsOldSchoolArrayWithOnlyValues" type="array" value="string, 10, 1.5, null, true, false" />

            <property name="expectsOldSchoolArrayWithKeysAndValues" type="array" value="string=>string,10=>10,float=>1.5,null=>null,true=>true,false=>false" />
        </properties>
    </rule>

</ruleset>
