Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko-pagliai committed May 8, 2024
1 parent 20fb176 commit 91e39fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/TestCase/TestSuite/TestTraitTest.php
Expand Up @@ -36,9 +36,11 @@ public function testAssertImageSize(): void
$this->fail('Unable to create a valid resource image');
}
imagejpeg($resource, TMP . 'pic.jpg');
$TestCase = $this->getMockBuilder(TestCase::class)
->disableOriginalConstructor()
->getMock();
$TestCase = new class ('MyTest') extends TestCase {
public function testSomeMethod() {

Check failure on line 40 in tests/TestCase/TestSuite/TestTraitTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Opening brace should be on a new line

Check failure on line 40 in tests/TestCase/TestSuite/TestTraitTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Method class@anonymous/tests/TestCase/TestSuite/TestTraitTest.php:39::testSomeMethod() has no return type specified.
}
};

$TestCase->assertImageSize(120, 20, TMP . 'pic.jpg');
}

Expand Down

0 comments on commit 91e39fe

Please sign in to comment.