<?php


namespace Strider2038\ImgCache\Tests\Unit\Imaging\Processing;

use PHPUnit\Framework\TestCase;
use Strider2038\ImgCache\Imaging\Image\ImageParameters;
use Strider2038\ImgCache\Imaging\Processing\ProcessingConfiguration;
use Strider2038\ImgCache\Imaging\Processing\Transforming\TransformationCollection;

class ProcessingConfigurationTest extends TestCase
{
    /** @var TransformationCollection */
    private $transformations;

    /** @var ImageParameters */
    private $imageParameters;

    protected function setUp(): void
    {
        $this->transformations = \Phake::mock(TransformationCollection::class);
        $this->imageParameters = \Phake::mock(ImageParameters::class);
    }

    /** @test */
    public function construct_givenProperties_propertiesAreSet(): void
    {
        $configuration = new ProcessingConfiguration($this->transformations, $this->imageParameters);

        $this->assertSame($this->transformations, $configuration->getTransformations());
        $this->assertSame($this->imageParameters, $configuration->getImageParameters());
    }
}
