diff --git a/phpunit.xml b/phpunit.xml
index 313a9e168..5dddd5b87 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -22,6 +22,7 @@
tests/unit/Variant
tests/unit/EvalFactoryTest.php
tests/unit/FenHeuristicsTest.php
+ tests/unit/FenSignalTest.php
tests/unit/FenToBoardFactoryTest.php
tests/unit/SanHeuristicsTest.php
diff --git a/src/Media/BoardToFenSignal.php b/src/FenSignal.php
similarity index 88%
rename from src/Media/BoardToFenSignal.php
rename to src/FenSignal.php
index ddb58ff86..c6d85d2b0 100644
--- a/src/Media/BoardToFenSignal.php
+++ b/src/FenSignal.php
@@ -1,9 +1,8 @@
move, $movetext);
if (!$sanMovetext->validate()) {
- throw new MediaException();
+ throw new \InvalidArgumentException();
}
if (self::MAX_MOVES < count($sanMovetext->moves)) {
- throw new MediaException();
+ throw new \InvalidArgumentException();
}
foreach ($sanMovetext->moves as $val) {
diff --git a/tests/unit/Media/BoardToFenSignalTest.php b/tests/unit/FenSignalTest.php
similarity index 78%
rename from tests/unit/Media/BoardToFenSignalTest.php
rename to tests/unit/FenSignalTest.php
index a72eaaadb..aa1e9d67f 100644
--- a/tests/unit/Media/BoardToFenSignalTest.php
+++ b/tests/unit/FenSignalTest.php
@@ -1,12 +1,12 @@
signal;
+ $signal = (new FenSignal($A74, $board))->signal;
$this->assertSame($expected, $signal);
}