diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
commit | f2e5fdc3666a2a6525b4202ab48df05efeebaf5c (patch) | |
tree | f559474e248a33c472fe0b260641866be5c0def3 /src/Wallabag/ImportBundle/Tests/Import | |
parent | a417b869237763ee115982d6367a82aa6174d74e (diff) | |
parent | 86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (diff) | |
download | wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.gz wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.zst wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.zip |
Merge pull request #1916 from wallabag/cleanup
Convert array + phpDoc
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Import')
4 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/ImportCompilerPassTest.php b/src/Wallabag/ImportBundle/Tests/Import/ImportCompilerPassTest.php index bd62ab3b..b22fcfbc 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/ImportCompilerPassTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/ImportCompilerPassTest.php | |||
@@ -25,7 +25,7 @@ class ImportCompilerPassTest extends \PHPUnit_Framework_TestCase | |||
25 | 25 | ||
26 | $container | 26 | $container |
27 | ->register('foo') | 27 | ->register('foo') |
28 | ->addTag('wallabag_import.import', array('alias' => 'pocket')) | 28 | ->addTag('wallabag_import.import', ['alias' => 'pocket']) |
29 | ; | 29 | ; |
30 | 30 | ||
31 | $this->process($container); | 31 | $this->process($container); |
diff --git a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php index 43b60ec3..cb171572 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php | |||
@@ -73,7 +73,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase | |||
73 | ); | 73 | ); |
74 | 74 | ||
75 | $this->logHandler = new TestHandler(); | 75 | $this->logHandler = new TestHandler(); |
76 | $logger = new Logger('test', array($this->logHandler)); | 76 | $logger = new Logger('test', [$this->logHandler]); |
77 | $pocket->setLogger($logger); | 77 | $pocket->setLogger($logger); |
78 | 78 | ||
79 | return $pocket; | 79 | return $pocket; |
diff --git a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php index 3ef852e5..8c967e1b 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php | |||
@@ -30,7 +30,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | |||
30 | $wallabag = new WallabagV1Import($this->em, $this->contentProxy); | 30 | $wallabag = new WallabagV1Import($this->em, $this->contentProxy); |
31 | 31 | ||
32 | $this->logHandler = new TestHandler(); | 32 | $this->logHandler = new TestHandler(); |
33 | $logger = new Logger('test', array($this->logHandler)); | 33 | $logger = new Logger('test', [$this->logHandler]); |
34 | $wallabag->setLogger($logger); | 34 | $wallabag->setLogger($logger); |
35 | 35 | ||
36 | if (false === $unsetUser) { | 36 | if (false === $unsetUser) { |
diff --git a/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php index dbefdee3..b0667c9a 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV2ImportTest.php | |||
@@ -30,7 +30,7 @@ class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase | |||
30 | $wallabag = new WallabagV2Import($this->em, $this->contentProxy); | 30 | $wallabag = new WallabagV2Import($this->em, $this->contentProxy); |
31 | 31 | ||
32 | $this->logHandler = new TestHandler(); | 32 | $this->logHandler = new TestHandler(); |
33 | $logger = new Logger('test', array($this->logHandler)); | 33 | $logger = new Logger('test', [$this->logHandler]); |
34 | $wallabag->setLogger($logger); | 34 | $wallabag->setLogger($logger); |
35 | 35 | ||
36 | if (false === $unsetUser) { | 36 | if (false === $unsetUser) { |