language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | src/Illuminate/Foundation/Testing/TestCase.php | @@ -63,7 +63,7 @@ abstract public function createApplication();
*
* @return void
*/
- protected function setUp()
+ protected function setUp(): void
{
if (! $this->app) {
$this->refreshApplication();
@@ -133,7 +133,7 @@ protected function setUpTraits()
*
* @return void
*/
- protected function tearDown()
+ protected function tearDown(): void
{
if ($this->app) {
foreach ($this->beforeApplicationDestroyedCallbacks as $callback) { | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthDatabaseTokenRepositoryTest.php | @@ -13,14 +13,14 @@
class AuthDatabaseTokenRepositoryTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
Carbon::setTestNow(Carbon::now());
}
- public function tearDown()
+ public function tearDown(): void
{
parent::tearDown();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthDatabaseUserProviderTest.php | @@ -13,7 +13,7 @@
class AuthDatabaseUserProviderTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthEloquentUserProviderTest.php | @@ -11,7 +11,7 @@
class AuthEloquentUserProviderTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthGuardTest.php | @@ -21,7 +21,7 @@
class AuthGuardTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthPasswordBrokerTest.php | @@ -14,7 +14,7 @@
class AuthPasswordBrokerTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthTokenGuardTest.php | @@ -10,7 +10,7 @@
class AuthTokenGuardTest extends TestCase
{
- protected function tearDown()
+ protected function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthenticateMiddlewareTest.php | @@ -18,12 +18,7 @@ class AuthenticateMiddlewareTest extends TestCase
{
protected $auth;
- public function tearDown()
- {
- m::close();
- }
-
- public function setUp()
+ public function setUp(): void
{
$container = Container::setInstance(new Container);
@@ -34,6 +29,11 @@ public function setUp()
});
}
+ public function tearDown(): void
+ {
+ m::close();
+ }
+
/**
* @expectedException \Illuminate\Auth\AuthenticationException
* @expectedExceptionMessage Unauthenticated. | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Auth/AuthorizeMiddlewareTest.php | @@ -22,12 +22,7 @@ class AuthorizeMiddlewareTest extends TestCase
protected $user;
protected $router;
- public function tearDown()
- {
- m::close();
- }
-
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
@@ -48,6 +43,11 @@ public function setUp()
});
}
+ public function tearDown(): void
+ {
+ m::close();
+ }
+
/**
* @expectedException \Illuminate\Auth\Access\AuthorizationException
* @expectedExceptionMessage This action is unauthorized. | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Broadcasting/BroadcastEventTest.php | @@ -9,7 +9,7 @@
class BroadcastEventTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Broadcasting/BroadcasterTest.php | @@ -16,14 +16,14 @@ class BroadcasterTest extends TestCase
*/
public $broadcaster;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
$this->broadcaster = new FakeBroadcaster;
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Broadcasting/PusherBroadcasterTest.php | @@ -15,7 +15,7 @@ class PusherBroadcasterTest extends TestCase
public $pusher;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Broadcasting/RedisBroadcasterTest.php | @@ -13,14 +13,14 @@ class RedisBroadcasterTest extends TestCase
*/
public $broadcaster;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
$this->broadcaster = m::mock(RedisBroadcaster::class)->makePartial();
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Broadcasting/UsePusherChannelsNamesTest.php | @@ -14,14 +14,14 @@ class UsePusherChannelConventionsTest extends TestCase
*/
public $broadcaster;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
$this->broadcaster = new FakeBroadcasterUsingPusherChannelsNames();
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Bus/BusDispatcherTest.php | @@ -15,7 +15,7 @@
class BusDispatcherTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheDatabaseStoreTest.php | @@ -13,7 +13,7 @@
class CacheDatabaseStoreTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheEventsTest.php | @@ -15,7 +15,7 @@
class CacheEventsTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheFileStoreTest.php | @@ -10,14 +10,14 @@
class CacheFileStoreTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
Carbon::setTestNow(Carbon::now());
}
- public function tearDown()
+ public function tearDown(): void
{
parent::tearDown();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheManagerTest.php | @@ -9,7 +9,7 @@
class CacheManagerTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheMemcachedConnectorTest.php | @@ -9,7 +9,7 @@
class CacheMemcachedConnectorTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheRateLimiterTest.php | @@ -9,7 +9,7 @@
class CacheRateLimiterTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheRedisStoreTest.php | @@ -9,7 +9,7 @@
class CacheRedisStoreTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheRepositoryTest.php | @@ -17,7 +17,7 @@
class CacheRepositoryTest extends TestCase
{
- protected function tearDown()
+ protected function tearDown(): void
{
m::close();
Carbon::setTestNow(); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheTableCommandTest.php | @@ -14,7 +14,7 @@
class CacheTableCommandTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/CacheTaggedCacheTest.php | @@ -14,7 +14,7 @@
class CacheTaggedCacheTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/ClearCommandTest.php | @@ -38,7 +38,7 @@ class ClearCommandTest extends TestCase
/**
* {@inheritdoc}
*/
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();
@@ -52,7 +52,7 @@ protected function setUp()
$this->command->setLaravel($app);
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cache/RedisCacheIntegrationTest.php | @@ -12,13 +12,13 @@ class RedisCacheIntegrationTest extends TestCase
{
use InteractsWithRedis;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
$this->setUpRedis();
}
- public function tearDown()
+ public function tearDown(): void
{
parent::tearDown();
m::close(); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Config/RepositoryTest.php | @@ -17,7 +17,7 @@ class RepositoryTest extends TestCase
*/
protected $config;
- protected function setUp()
+ protected function setUp(): void
{
$this->repository = new Repository($this->config = [
'foo' => 'bar', | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Console/ConsoleApplicationTest.php | @@ -12,7 +12,7 @@
class ConsoleApplicationTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Console/ConsoleEventSchedulerTest.php | @@ -19,7 +19,7 @@ class ConsoleEventSchedulerTest extends TestCase
*/
private $schedule;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
@@ -32,7 +32,7 @@ public function setUp()
$container->instance(Schedule::class, $this->schedule = new Schedule(m::mock(EventMutex::class)));
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Console/ConsoleScheduledEventTest.php | @@ -18,13 +18,13 @@ class ConsoleScheduledEventTest extends TestCase
*/
protected $defaultTimezone;
- public function setUp()
+ public function setUp(): void
{
$this->defaultTimezone = date_default_timezone_get();
date_default_timezone_set('UTC');
}
- public function tearDown()
+ public function tearDown(): void
{
date_default_timezone_set($this->defaultTimezone);
Carbon::setTestNow(null); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Console/Scheduling/CacheEventMutexTest.php | @@ -31,7 +31,7 @@ class CacheEventMutexTest extends TestCase
*/
protected $cacheRepository;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Console/Scheduling/CacheSchedulingMutexTest.php | @@ -38,7 +38,7 @@ class CacheSchedulingMutexTest extends TestCase
*/
protected $cacheRepository;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Console/Scheduling/EventTest.php | @@ -9,7 +9,7 @@
class EventTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Console/Scheduling/FrequencyTest.php | @@ -14,7 +14,7 @@ class FrequencyTest extends TestCase
*/
protected $event;
- public function setUp()
+ public function setUp(): void
{
$this->event = new Event(
m::mock(EventMutex::class), | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cookie/CookieTest.php | @@ -10,7 +10,7 @@
class CookieTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Cookie/Middleware/EncryptCookiesTest.php | @@ -26,7 +26,7 @@ class EncryptCookiesTest extends TestCase
protected $setCookiePath = 'cookie/set';
protected $queueCookiePath = 'cookie/queue';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseConnectionFactoryTest.php | @@ -14,7 +14,7 @@ class DatabaseConnectionFactoryTest extends TestCase
{
protected $db;
- public function setUp()
+ public function setUp(): void
{
$this->db = new DB;
@@ -36,7 +36,7 @@ public function setUp()
$this->db->setAsGlobal();
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseConnectionTest.php | @@ -25,7 +25,7 @@
class DatabaseConnectionTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseConnectorTest.php | @@ -13,7 +13,7 @@
class DatabaseConnectorTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentBelongsToManyChunkByIdTest.php | @@ -10,7 +10,7 @@
class DatabaseEloquentBelongsToManyChunkByIdTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -70,7 +70,7 @@ public function testBelongsToChunkById()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('users');
$this->schema()->drop('articles'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentBelongsToManySyncReturnValueTypeTest.php | @@ -9,7 +9,7 @@
class DatabaseEloquentBelongsToManySyncReturnValueTypeTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -56,7 +56,7 @@ public function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('users');
$this->schema()->drop('articles'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentBelongsToManyWithDefaultAttributesTest.php | @@ -10,7 +10,7 @@
class DatabaseEloquentBelongsToManyWithDefaultAttributesTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentBelongsToTest.php | @@ -15,7 +15,7 @@ class DatabaseEloquentBelongsToTest extends TestCase
protected $related;
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentBuilderTest.php | @@ -20,7 +20,7 @@
class DatabaseEloquentBuilderTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentCastsDatabaseStringTest.php | @@ -9,7 +9,7 @@
class DatabaseEloquentCastsDatabaseStringTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -45,7 +45,7 @@ public function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('casting_table');
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentCollectionQueueableTest.php | @@ -10,7 +10,7 @@
class DatabaseEloquentCollectionQueueableTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
Mockery::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentCollectionTest.php | @@ -10,7 +10,7 @@
class DatabaseEloquentCollectionTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentGlobalScopesTest.php | @@ -11,7 +11,7 @@
class DatabaseEloquentGlobalScopesTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
@@ -21,7 +21,7 @@ public function setUp()
])->bootEloquent();
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentHasManyTest.php | @@ -12,7 +12,7 @@
class DatabaseEloquentHasManyTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentHasManyThroughIntegrationTest.php | @@ -9,7 +9,7 @@
class DatabaseEloquentHasManyThroughIntegrationTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -62,7 +62,7 @@ public function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('users');
$this->schema()->drop('posts'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentHasOneTest.php | @@ -19,7 +19,7 @@ class DatabaseEloquentHasOneTest extends TestCase
protected $parent;
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentHasOneThroughIntegrationTest.php | @@ -9,7 +9,7 @@
class DatabaseEloquentHasOneThroughIntegrationTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -62,7 +62,7 @@ public function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('users');
$this->schema()->drop('contracts'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentIntegrationTest.php | @@ -26,7 +26,7 @@ class DatabaseEloquentIntegrationTest extends TestCase
*
* @return void
*/
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -126,7 +126,7 @@ protected function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
foreach (['default', 'second_connection'] as $connection) {
$this->schema($connection)->drop('users'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentIntegrationWithTablePrefixTest.php | @@ -15,7 +15,7 @@ class DatabaseEloquentIntegrationWithTablePrefixTest extends TestCase
*
* @return void
*/
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -66,7 +66,7 @@ protected function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
foreach (['default'] as $connection) {
$this->schema($connection)->drop('users'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentIrregularPluralTest.php | @@ -9,7 +9,7 @@
class DatabaseEloquentIrregularPluralTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -53,7 +53,7 @@ public function createSchema()
});
}
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('irregular_plural_tokens');
$this->schema()->drop('irregular_plural_humans'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentModelTest.php | @@ -30,14 +30,14 @@ class DatabaseEloquentModelTest extends TestCase
{
use InteractsWithTime;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
Carbon::setTestNow(Carbon::now());
}
- public function tearDown()
+ public function tearDown(): void
{
parent::tearDown();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentMorphTest.php | @@ -13,7 +13,7 @@
class DatabaseEloquentMorphTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
Relation::morphMap([], false);
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentMorphToManyTest.php | @@ -10,7 +10,7 @@
class DatabaseEloquentMorphToManyTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentMorphToTest.php | @@ -14,7 +14,7 @@ class DatabaseEloquentMorphToTest extends TestCase
protected $related;
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentPivotTest.php | @@ -9,7 +9,7 @@
class DatabaseEloquentPivotTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentPolymorphicIntegrationTest.php | @@ -8,7 +8,7 @@
class DatabaseEloquentPolymorphicIntegrationTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -66,7 +66,7 @@ public function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('users');
$this->schema()->drop('posts'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentPolymorphicRelationsIntegrationTest.php | @@ -14,7 +14,7 @@ class DatabaseEloquentPolymorphicRelationsIntegrationTest extends TestCase
*
* @return void
*/
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -58,7 +58,7 @@ protected function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
foreach (['default'] as $connection) {
$this->schema($connection)->drop('posts'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentRelationTest.php | @@ -14,7 +14,7 @@
class DatabaseEloquentRelationTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentSoftDeletesIntegrationTest.php | @@ -13,7 +13,7 @@
class DatabaseEloquentSoftDeletesIntegrationTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
Carbon::setTestNow(Carbon::now());
@@ -84,7 +84,7 @@ public function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
Carbon::setTestNow(null);
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseEloquentTimestampsTest.php | @@ -9,7 +9,7 @@
class DatabaseEloquentTimestampsTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
$db = new DB;
@@ -56,7 +56,7 @@ public function createSchema()
*
* @return void
*/
- public function tearDown()
+ public function tearDown(): void
{
$this->schema()->drop('users');
$this->schema()->drop('users_created_at'); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationCreatorTest.php | @@ -9,7 +9,7 @@
class DatabaseMigrationCreatorTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationInstallCommandTest.php | @@ -12,7 +12,7 @@
class DatabaseMigrationInstallCommandTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationMakeCommandTest.php | @@ -13,7 +13,7 @@
class DatabaseMigrationMakeCommandTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationMigrateCommandTest.php | @@ -12,7 +12,7 @@
class DatabaseMigrationMigrateCommandTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationRefreshCommandTest.php | @@ -16,7 +16,7 @@
class DatabaseMigrationRefreshCommandTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationRepositoryTest.php | @@ -13,7 +13,7 @@
class DatabaseMigrationRepositoryTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationResetCommandTest.php | @@ -12,7 +12,7 @@
class DatabaseMigrationResetCommandTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigrationRollbackCommandTest.php | @@ -12,7 +12,7 @@
class DatabaseMigrationRollbackCommandTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMigratorIntegrationTest.php | @@ -23,7 +23,7 @@ class DatabaseMigratorIntegrationTest extends TestCase
*
* @return void
*/
- public function setUp()
+ public function setUp(): void
{
$this->db = $db = new DB;
@@ -59,7 +59,7 @@ public function setUp()
}
}
- public function tearDown()
+ public function tearDown(): void
{
Facade::clearResolvedInstances();
Facade::setFacadeApplication(null); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseMySqlSchemaGrammarTest.php | @@ -11,7 +11,7 @@
class DatabaseMySqlSchemaGrammarTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabasePostgresSchemaGrammarTest.php | @@ -10,7 +10,7 @@
class DatabasePostgresSchemaGrammarTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseProcessorTest.php | @@ -11,7 +11,7 @@
class DatabaseProcessorTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseQueryBuilderTest.php | @@ -22,7 +22,7 @@
class DatabaseQueryBuilderTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSQLiteSchemaGrammarTest.php | @@ -12,7 +12,7 @@
class DatabaseSQLiteSchemaGrammarTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSchemaBlueprintIntegrationTest.php | @@ -21,7 +21,7 @@ class DatabaseSchemaBlueprintIntegrationTest extends TestCase
*
* @return void
*/
- public function setUp()
+ public function setUp(): void
{
$this->db = $db = new DB;
@@ -37,7 +37,7 @@ public function setUp()
Facade::setFacadeApplication($container);
}
- public function tearDown()
+ public function tearDown(): void
{
Facade::clearResolvedInstances();
Facade::setFacadeApplication(null); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSchemaBlueprintTest.php | @@ -13,7 +13,7 @@
class DatabaseSchemaBlueprintTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSchemaBuilderIntegrationTest.php | @@ -16,7 +16,7 @@ class DatabaseSchemaBuilderIntegrationTest extends TestCase
*
* @return void
*/
- public function setUp()
+ public function setUp(): void
{
$this->db = $db = new DB;
@@ -32,7 +32,7 @@ public function setUp()
Facade::setFacadeApplication($container);
}
- public function tearDown()
+ public function tearDown(): void
{
Facade::clearResolvedInstances();
Facade::setFacadeApplication(null); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSchemaBuilderTest.php | @@ -10,7 +10,7 @@
class DatabaseSchemaBuilderTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSeederTest.php | @@ -28,7 +28,7 @@ public function run(Mock $someDependency)
class DatabaseSeederTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSoftDeletingScopeTest.php | @@ -15,7 +15,7 @@
class DatabaseSoftDeletingScopeTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSoftDeletingTraitTest.php | @@ -9,7 +9,7 @@
class DatabaseSoftDeletingTraitTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/DatabaseSqlServerSchemaGrammarTest.php | @@ -10,7 +10,7 @@
class DatabaseSqlServerSchemaGrammarTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Database/SeedCommandTest.php | @@ -45,7 +45,7 @@ public function testHandle()
$container->shouldHaveReceived('call')->with([$command, 'handle']);
}
- protected function tearDown()
+ protected function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Events/EventsDispatcherTest.php | @@ -14,7 +14,7 @@
class EventsDispatcherTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Filesystem/FilesystemAdapterTest.php | @@ -16,13 +16,13 @@ class FilesystemAdapterTest extends TestCase
private $tempDir;
private $filesystem;
- public function setUp()
+ public function setUp(): void
{
$this->tempDir = __DIR__.'/tmp';
$this->filesystem = new Filesystem(new Local($this->tempDir));
}
- public function tearDown()
+ public function tearDown(): void
{
$filesystem = new Filesystem(new Local(dirname($this->tempDir)));
$filesystem->deleteDir(basename($this->tempDir)); | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Filesystem/FilesystemTest.php | @@ -14,13 +14,13 @@ class FilesystemTest extends TestCase
{
private $tempDir;
- public function setUp()
+ public function setUp(): void
{
$this->tempDir = __DIR__.'/tmp';
mkdir($this->tempDir);
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/Bootstrap/LoadEnvironmentVariablesTest.php | @@ -9,7 +9,7 @@
class LoadEnvironmentVariablesTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/FoundationApplicationTest.php | @@ -12,7 +12,7 @@
class FoundationApplicationTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/FoundationAuthenticationTest.php | @@ -49,7 +49,7 @@ protected function mockGuard()
return $guard;
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/FoundationComposerTest.php | @@ -9,7 +9,7 @@
class FoundationComposerTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/FoundationEnvironmentDetectorTest.php | @@ -8,7 +8,7 @@
class FoundationEnvironmentDetectorTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/FoundationExceptionsHandlerTest.php | @@ -29,7 +29,7 @@ class FoundationExceptionsHandlerTest extends TestCase
protected $request;
- public function setUp()
+ public function setUp(): void
{
$this->config = m::mock(Config::class);
@@ -51,7 +51,7 @@ public function setUp()
$this->handler = new Handler($this->container);
}
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/FoundationFormRequestTest.php | @@ -19,7 +19,7 @@ class FoundationFormRequestTest extends TestCase
{
protected $mocks = [];
- public function tearDown()
+ public function tearDown(): void
{
m::close();
| true |
Other | laravel | framework | 8fc3a75b413267a30e41464d358c1d0714a6a186.json | Add void return type to setUp and tearDown methods | tests/Foundation/FoundationHelpersTest.php | @@ -11,7 +11,7 @@
class FoundationHelpersTest extends TestCase
{
- public function tearDown()
+ public function tearDown(): void
{
m::close();
} | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.