eZ\Publish\Core\FieldType\Tests\MapLocationTest::provideInvalidInputForAcceptValue PHP Method

provideInvalidInputForAcceptValue() public method

Returns an array of data provider sets with 2 arguments: 1. The invalid input to acceptValue(), 2. The expected exception type as a string. For example: return array( array( new \stdClass(), 'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException', ), array( array(), 'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException', ), ... );
    public function provideInvalidInputForAcceptValue()
    {
        return array(array('some string', 'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException'), array(new MapLocation\Value(array('latitude' => 'foo')), 'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException'), array(new MapLocation\Value(array('latitude' => 23.42, 'longitude' => 'bar')), 'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException'), array(new MapLocation\Value(array('latitude' => 23.42, 'longitude' => 42.23, 'address' => array())), 'eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException'));
    }