8000 Debug tests · symfony/symfony@f594d3e · GitHub
[go: up one dir, main page]

Skip to content

Commit f594d3e

Browse files
committed
Debug tests
1 parent 012c56b commit f594d3e

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,9 @@ before_install:
115115
fi
116116
117117
# 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')
124121
125122
- |
126123
# Install sigchild-enabled PHP to test the Process component on the lowest PHP matrix line

src/Symfony/Component/Lock/Tests/Store/AbstractStoreTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public function testSave()
3939
$this->assertFalse($store->exists($key));
4040
}
4141

42+
/**
43+
* @dataProvider lotOfData
44+
*/
4245
public function testSaveWithDifferentResources()
4346
{
4447
$store = $this->getStore();
@@ -63,6 +66,9 @@ public function testSaveWithDifferentResources()
6366
$this->assertFalse($store->exists($key2));
6467
}
6568

69+
/**
70+
* @dataProvider lotOfData
71+
*/
6672
public function testSaveWithDifferentKeysOnSameResources()
6773
{
6874
$store = $this->getStore();
@@ -112,4 +118,9 @@ public function testSaveTwice()
112118

113119
$store->delete($key);
114120
}
121+
122+
public function lotOfData()
123+
{
124+
return array_fill(0, 1000, []);
125+
}
115126
}

src/Symfony/Component/Lock/Tests/Store/MemcachedStoreTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Lock\Tests\Store;
1313

14+
use Symfony\Component\Lock\Exception\LockConflictedException;
15+
use Symfony\Component\Lock\Key;
1416
use Symfony\Component\Lock\Store\MemcachedStore;
1517

1618
/**

0 commit comments

Comments
 (0)
0