mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[ticket/15392] Changed dirname(__FILE__) to __DIR__
Changed dirname(__FILE__) to __DIR__ everywhere PHPBB3-15392
This commit is contained in:
@@ -91,7 +91,7 @@ class phpbb_event_md_exporter_test extends phpbb_test_case
|
||||
*/
|
||||
public function test_crawl_eventsmd($file, $min_version, $max_version, $events)
|
||||
{
|
||||
$exporter = new \phpbb\event\md_exporter(dirname(__FILE__) . '/fixtures/', null, $min_version, $max_version);
|
||||
$exporter = new \phpbb\event\md_exporter(__DIR__ . '/fixtures/', null, $min_version, $max_version);
|
||||
$this->assertSame(count($events), $exporter->crawl_eventsmd($file, 'adm'));
|
||||
$this->assertEquals($events, $exporter->get_events());
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ class phpbb_event_php_exporter_test extends phpbb_test_case
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->exporter = new \phpbb\event\php_exporter(dirname(__FILE__) . '/fixtures/');
|
||||
$this->exporter = new \phpbb\event\php_exporter(__DIR__ . '/fixtures/');
|
||||
}
|
||||
|
||||
static public function crawl_php_file_data()
|
||||
|
Reference in New Issue
Block a user