File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
src/Symfony/Component/Lock/Tests/Store Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,9 @@ before_install:
115
115
fi
116
116
117
117
# Matrix lines for intermediate PHP versions are skipped for pull requests
118
- if [[ ! $deps && ! $PHP = ${MIN_PHP%.*} && ! $PHP = hhvm* && $TRAVIS_PULL_REQUEST != false ]]; then
119
- deps=skip
120
- skip=1
121
- else
122
- COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n')
123
- fi
118
+ # COMPONENTS=$(printf 'src/Symfony/Bridge/Doctrine\nsrc/Symfony/Bundle/FrameworkBundle\nsrc/Symfony/Component/Cache\nsrc/Symfony/Component/HttpFoundation\nsrc/Symfony/Component/Lock\n')
119
+ # COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'|grep Lock)
120
+ COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n')
124
121
125
122
- |
126
123
# Install sigchild-enabled PHP to test the Process component on the lowest PHP matrix line
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ public function testSave()
39
39
$ this ->assertFalse ($ store ->exists ($ key ));
40
40
}
41
41
42
+ /**
43
+ * @dataProvider lotOfData
44
+ */
42
45
public function testSaveWithDifferentResources ()
43
46
{
44
47
$ store = $ this ->getStore ();
@@ -63,6 +66,9 @@ public function testSaveWithDifferentResources()
63
66
$ this ->assertFalse ($ store ->exists ($ key2 ));
64
67
}
65
68
69
+ /**
70
+ * @dataProvider lotOfData
71
+ */
66
72
public function testSaveWithDifferentKeysOnSameResources ()
67
73
{
68
74
$ store = $ this ->getStore ();
@@ -112,4 +118,9 @@ public function testSaveTwice()
112
118
113
119
$ store ->delete ($ key );
114
120
}
121
+
122
+ public function lotOfData ()
123
+ {
124
+ return array_fill (0 , 1000 , []);
125
+ }
115
126
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use Symfony \Component \Lock \Exception \LockConflictedException ;
15
+ use Symfony \Component \Lock \Key ;
14
16
use Symfony \Component \Lock \Store \MemcachedStore ;
15
17
16
18
/**
You can’t perform that action at this time.
0 commit comments