aboutsummaryrefslogtreecommitdiff
path: root/test/Model/ResultTest.php
blob: 03801822277f4bff460b316fa9ba5c26593dcb4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

declare(strict_types=1);

namespace AugustOffensive\Model;

use PHPUnit\Framework\TestCase;

/**
 * @covers Result
 */
final class ResultTest extends \PHPUnit\Framework\TestCase
{
    public function testCanBeCreated()
    {
        $this->assertInstanceOf(
            Result::class,
            new Result("TEST_SUCCESS", array("it worked"))
        );
    }

    public function testHasAccessibleValues()
    {
        $resultType = "VISIBLE";
        $result = array("array", "of", "values");
        $resultObject = new Result($resultType, $result);

        $this->assertEquals(
            $resultType,
            $resultObject->getResultType()
        );
        $this->assertEquals(
            $result,
            $resultObject->getResult()
        );
    }
}