aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 11:36:01 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 12:25:29 +0200
commit4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch)
tree3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php
parent7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff)
downloadwallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php
index c43c62c3..e9025b45 100644
--- a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php
@@ -36,7 +36,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
36 36
37 public function testTagWithNoMatchingRule() 37 public function testTagWithNoMatchingRule()
38 { 38 {
39 $taggingRule = $this->getTaggingRule('rule as string', array('foo', 'bar')); 39 $taggingRule = $this->getTaggingRule('rule as string', ['foo', 'bar']);
40 $user = $this->getUser([$taggingRule]); 40 $user = $this->getUser([$taggingRule]);
41 $entry = new Entry($user); 41 $entry = new Entry($user);
42 42
@@ -53,7 +53,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
53 53
54 public function testTagWithAMatchingRule() 54 public function testTagWithAMatchingRule()
55 { 55 {
56 $taggingRule = $this->getTaggingRule('rule as string', array('foo', 'bar')); 56 $taggingRule = $this->getTaggingRule('rule as string', ['foo', 'bar']);
57 $user = $this->getUser([$taggingRule]); 57 $user = $this->getUser([$taggingRule]);
58 $entry = new Entry($user); 58 $entry = new Entry($user);
59 59
@@ -74,8 +74,8 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
74 74
75 public function testTagWithAMixOfMatchingRules() 75 public function testTagWithAMixOfMatchingRules()
76 { 76 {
77 $taggingRule = $this->getTaggingRule('bla bla', array('hey')); 77 $taggingRule = $this->getTaggingRule('bla bla', ['hey']);
78 $otherTaggingRule = $this->getTaggingRule('rule as string', array('foo')); 78 $otherTaggingRule = $this->getTaggingRule('rule as string', ['foo']);
79 79
80 $user = $this->getUser([$taggingRule, $otherTaggingRule]); 80 $user = $this->getUser([$taggingRule, $otherTaggingRule]);
81 $entry = new Entry($user); 81 $entry = new Entry($user);
@@ -94,7 +94,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
94 94
95 public function testWhenTheTagExists() 95 public function testWhenTheTagExists()
96 { 96 {
97 $taggingRule = $this->getTaggingRule('rule as string', array('foo')); 97 $taggingRule = $this->getTaggingRule('rule as string', ['foo']);
98 $user = $this->getUser([$taggingRule]); 98 $user = $this->getUser([$taggingRule]);
99 $entry = new Entry($user); 99 $entry = new Entry($user);
100 $tag = new Tag(); 100 $tag = new Tag();
@@ -122,8 +122,8 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
122 122
123 public function testSameTagWithDifferentfMatchingRules() 123 public function testSameTagWithDifferentfMatchingRules()
124 { 124 {
125 $taggingRule = $this->getTaggingRule('bla bla', array('hey')); 125 $taggingRule = $this->getTaggingRule('bla bla', ['hey']);
126 $otherTaggingRule = $this->getTaggingRule('rule as string', array('hey')); 126 $otherTaggingRule = $this->getTaggingRule('rule as string', ['hey']);
127 127
128 $user = $this->getUser([$taggingRule, $otherTaggingRule]); 128 $user = $this->getUser([$taggingRule, $otherTaggingRule]);
129 $entry = new Entry($user); 129 $entry = new Entry($user);
@@ -142,7 +142,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
142 142
143 public function testTagAllEntriesForAUser() 143 public function testTagAllEntriesForAUser()
144 { 144 {
145 $taggingRule = $this->getTaggingRule('bla bla', array('hey')); 145 $taggingRule = $this->getTaggingRule('bla bla', ['hey']);
146 146
147 $user = $this->getUser([$taggingRule]); 147 $user = $this->getUser([$taggingRule]);
148 148
@@ -152,7 +152,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase
152 152
153 $this->rulerz 153 $this->rulerz
154 ->method('filter') 154 ->method('filter')
155 ->willReturn(array(new Entry($user), new Entry($user))); 155 ->willReturn([new Entry($user), new Entry($user)]);
156 156
157 $entries = $this->tagger->tagAllForUser($user); 157 $entries = $this->tagger->tagAllForUser($user);
158 158