1 | <?php |
||
22 | class ResultEntityTest extends UnitTestCase |
||
23 | { |
||
24 | //<editor-fold desc="Public Methods"> |
||
25 | /** |
||
26 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::setPlayed |
||
27 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::isPlayed |
||
28 | */ |
||
29 | public function testPlayed() |
||
36 | |||
37 | /** |
||
38 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::setResult |
||
39 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::getResult |
||
40 | * @uses \Tfboe\FmLib\Helpers\BasicEnum |
||
41 | */ |
||
42 | public function testResult() |
||
49 | |||
50 | /** |
||
51 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::setResultA |
||
52 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::getResultA |
||
53 | */ |
||
54 | public function testResultA() |
||
61 | |||
62 | /** |
||
63 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::setResultB |
||
64 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::getResultB |
||
65 | */ |
||
66 | public function testResultB() |
||
73 | |||
74 | /** |
||
75 | * @covers \Tfboe\FmLib\Entity\Helpers\ResultEntity::setResult |
||
76 | * @uses \Tfboe\FmLib\Exceptions\ValueNotValid::__construct |
||
77 | * @uses \Tfboe\FmLib\Helpers\BasicEnum |
||
78 | */ |
||
79 | public function testResultNotValidException() |
||
88 | //</editor-fold desc="Public Methods"> |
||
89 | |||
90 | //<editor-fold desc="Private Methods"> |
||
91 | /** |
||
92 | * @return MockObject|ResultEntity |
||
93 | */ |
||
94 | private function mock(): MockObject |
||
98 | //</editor-fold desc="Private Methods"> |
||
99 | } |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: