Adjust style

This commit is contained in:
Nuno Maduro
2024-06-25 21:02:52 +01:00
parent c65755725d
commit 04c39bae2e
45 changed files with 63 additions and 168 deletions

View File

@ -50,21 +50,15 @@ it('cannot resolve a parameter without type', function () {
class ClassWithDependency
{
public function __construct(Container $container)
{
}
public function __construct(Container $container) {}
}
class ClassWithSubDependency
{
public function __construct(ClassWithDependency $param)
{
}
public function __construct(ClassWithDependency $param) {}
}
class ClassWithoutTypeParameter
{
public function __construct($param)
{
}
public function __construct($param) {}
}

View File

@ -3,8 +3,7 @@
use Pest\Support\Reflection;
it('gets file name from closure', function () {
$fileName = Reflection::getFileNameFromClosure(function () {
});
$fileName = Reflection::getFileNameFromClosure(function () {});
expect($fileName)->toBe(__FILE__);
});

View File

@ -20,8 +20,7 @@ it('does not allow to add the same test description twice', function () {
it('alerts users about tests with arguments but no input', function () {
$testSuite = new TestSuite(getcwd(), 'tests');
$method = new TestCaseMethodFactory('foo', function (int $arg) {
});
$method = new TestCaseMethodFactory('foo', function (int $arg) {});
$method->description = 'bar';