Skip to content

Commit 8c3dcd8

Browse files
committed
added more tests
1 parent 5ae4fa2 commit 8c3dcd8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Unit/ParameterHelperTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,11 @@ public function __toString(): string
146146
});
147147
self::assertEquals('abc', $result);
148148
}
149+
150+
public function testInvalidType(): void
151+
{
152+
$this->expectException(InvalidArgumentException::class);
153+
$this->expectExceptionMessage('Parameters must be iterable, scalar, null or stringable');
154+
ParameterHelper::asParameter(new stdClass());
155+
}
149156
}

0 commit comments

Comments
 (0)