mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Adjust style
This commit is contained in:
@ -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) {}
|
||||
}
|
||||
|
||||
@ -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__);
|
||||
});
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user