diff --git a/spec/PUGX/Poser/Calculator/GDTextSizeCalculatorSpec.php b/spec/PUGX/Poser/Calculator/GDTextSizeCalculatorSpec.php index 0864008..64e1127 100644 --- a/spec/PUGX/Poser/Calculator/GDTextSizeCalculatorSpec.php +++ b/spec/PUGX/Poser/Calculator/GDTextSizeCalculatorSpec.php @@ -8,8 +8,8 @@ class GDTextSizeCalculatorSpec extends ObjectBehavior { public function it_should_compute_text_width(): void { - $this->calculateWidth('MIT', 8)->shouldBeLike(24); - $this->calculateWidth('MIT', 10)->shouldBeLike(29); - $this->calculateWidth('MIT', 14)->shouldBeLike(34); + $this->calculateWidth('MIT', 8)->shouldBeLike(24.0); + $this->calculateWidth('MIT', 10)->shouldBeLike(29.0); + $this->calculateWidth('MIT', 14)->shouldBeLike(34.0); } }