Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Aug 14, 2020
1 parent f024555 commit e710e7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions src/Preloader/Preloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public function load(): void
{
$this->included = get_included_files();

var_dump($this->included);
var_dump('------');

foreach ($this->paths as $path) {
$this->loadPath(\rtrim($path, '/'));
}
Expand Down
8 changes: 1 addition & 7 deletions tests/Preloader/PreloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ public function tearDown()

public function testTest()
{
\opcache_reset();

$preloader = new Preloader();

$preloader
Expand All @@ -36,8 +34,6 @@ public function testTest()

$this->assertGreaterThan(30, $autoloaded);

\opcache_reset();

$preloader = new Preloader();

$preloader
Expand All @@ -46,13 +42,11 @@ public function testTest()

$this->assertEquals($autoloaded + 3 + 4, $preloader->getCount());

\opcache_reset();

$preloader
->paths(realpath(__DIR__ . '/../resources'))
->ignore(realpath(__DIR__ . '/../resources/nested'))
->load();

$this->assertEquals($autoloaded + 2 + 4, $preloader->getCount());
$this->assertEquals($autoloaded + 2 + 5, $preloader->getCount());
}
}

0 comments on commit e710e7c

Please sign in to comment.