mirror of
https://github.com/Intervention/image.git
synced 2025-09-02 02:12:37 +02:00
Add type hints in tests
This commit is contained in:
@@ -14,7 +14,7 @@ final class BezierFactoryTest extends BaseTestCase
|
||||
{
|
||||
public function testFactoryCallback(): void
|
||||
{
|
||||
$factory = new BezierFactory(function ($bezier) {
|
||||
$factory = new BezierFactory(function ($bezier): void {
|
||||
$bezier->background('f00');
|
||||
$bezier->border('ff0', 10);
|
||||
$bezier->point(300, 260);
|
||||
|
@@ -15,7 +15,7 @@ final class CircleFactoryTest extends BaseTestCase
|
||||
{
|
||||
public function testFactoryCallback(): void
|
||||
{
|
||||
$factory = new CircleFactory(new Point(1, 2), function ($circle) {
|
||||
$factory = new CircleFactory(new Point(1, 2), function ($circle): void {
|
||||
$circle->background('fff');
|
||||
$circle->border('ccc', 10);
|
||||
$circle->radius(100);
|
||||
|
@@ -15,7 +15,7 @@ final class EllipseFactoryTest extends BaseTestCase
|
||||
{
|
||||
public function testFactoryCallback(): void
|
||||
{
|
||||
$factory = new EllipseFactory(new Point(1, 2), function ($ellipse) {
|
||||
$factory = new EllipseFactory(new Point(1, 2), function ($ellipse): void {
|
||||
$ellipse->background('fff');
|
||||
$ellipse->border('ccc', 10);
|
||||
$ellipse->width(100);
|
||||
|
@@ -14,7 +14,7 @@ final class LineFactoryTest extends BaseTestCase
|
||||
{
|
||||
public function testFactoryCallback(): void
|
||||
{
|
||||
$factory = new LineFactory(function ($line) {
|
||||
$factory = new LineFactory(function ($line): void {
|
||||
$line->color('fff');
|
||||
$line->background('fff');
|
||||
$line->border('fff', 10);
|
||||
|
@@ -14,7 +14,7 @@ final class PolygonFactoryTest extends BaseTestCase
|
||||
{
|
||||
public function testFactoryCallback(): void
|
||||
{
|
||||
$factory = new PolygonFactory(function ($polygon) {
|
||||
$factory = new PolygonFactory(function ($polygon): void {
|
||||
$polygon->background('fff');
|
||||
$polygon->border('ccc', 10);
|
||||
$polygon->point(1, 2);
|
||||
|
@@ -15,7 +15,7 @@ final class RectangleFactoryTest extends BaseTestCase
|
||||
{
|
||||
public function testFactoryCallback(): void
|
||||
{
|
||||
$factory = new RectangleFactory(new Point(1, 2), function ($rectangle) {
|
||||
$factory = new RectangleFactory(new Point(1, 2), function ($rectangle): void {
|
||||
$rectangle->background('fff');
|
||||
$rectangle->border('ccc', 10);
|
||||
$rectangle->width(100);
|
||||
|
Reference in New Issue
Block a user