<?php

namespace CultuurNet\UDB3\Offer;

class OfferTypeTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    public function it_can_be_created_from_a_value_with_incorrect_casing()
    {
        $expectedOfferType = OfferType::PLACE();
        $actualOfferType = OfferType::fromCaseInsensitiveValue('Place');
        $this->assertTrue($expectedOfferType->sameValueAs($actualOfferType));

        $expectedOfferType = OfferType::EVENT();
        $actualOfferType = OfferType::fromCaseInsensitiveValue('eVeNt');
        $this->assertTrue($expectedOfferType->sameValueAs($actualOfferType));
    }
}

Test for instantiating an OfferType from a value with incorrect casing.
III-666: Test for instantiating an OfferType from a value with incorrect casing.
