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

Skip to content

Commit 598be05

Browse files
committed
Debug tests
1 parent 01d1563 commit 598be05

File tree

6 files changed

+18
-9
lines changed

6 files ch 8000 anged

+18
-9
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,9 @@ before_install:
9292
fi
9393
9494
# Matrix lines for intermediate PHP versions are skipped for pull requests
95-
if [[ ! $deps && ! $PHP = ${MIN_PHP%.*} && ! $PHP = hhvm* && $TRAVIS_PULL_REQUEST != false ]]; then
96-
deps=skip
97-
skip=1
98-
else
99-
COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n')
100-
fi
95+
# COMPONENTS=$(printf 'src/Symfony/Bridge/Doctrine\nsrc/Symfony/Bundle/FrameworkBundle\nsrc/Symfony/Component/Cache\nsrc/Symfony/Component/HttpFoundation\nsrc/Symfony/Component/Lock\n')
96+
# COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'|grep Lock)
97+
COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n')
10198
10299
- |
103100
# Install sigchild-enabled PHP to test the Process component on the lowest PHP matrix line

src/Symfony/Component/Cache/Tests/Adapter/AbstractRedisAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function setupBeforeClass()
4141

4242
public static function tearDownAfterClass()
4343
{
44-
self::$redis->flushDB();
44+
// self::$redis->flushDB();
4545
self::$redis = null;
4646
}
4747
}

src/Symfony/Component/Cache/Tests/Adapter/PredisClusterAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function setupBeforeClass()
2121

2222
public static function tearDownAfterClass()
2323
{
24-
self::$redis->getConnection()->getConnectionByKey('foo')->executeCommand(self::$redis->createCommand('FLUSHDB'));
24+
// self::$redis->getConnection()->getConnectionByKey('foo')->executeCommand(self::$redis->createCommand('FLUSHDB'));
2525
self::$redis = null;
2626
}
2727
}

src/Symfony/Component/Cache/Tests/Simple/AbstractRedisCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function setupBeforeClass()
4141

4242
public static function tearDownAfterClass()
4343
{
44-
self::$redis->flushDB();
44+
// self::$redis->flushDB();
4545
self::$redis = null;
4646
}
4747
}

src/Symfony/Component/Cache/Traits/MemcachedTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ protected function doDelete(array $ids)
233233
*/
234234
protected function doClear($namespace)
235235
{
236+
return true;
236237
return $this->checkResultCode($this->client->flush());
237238
}
238239

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();
@@ -60,6 +63,9 @@ public function testSaveWithDifferentResources()
6063
$this->assertFalse($store->exists($key2));
6164
}
6265

66+
/**
67+
* @dataProvider lotOfData
68+
*/
6369
public function testSaveWithDifferentKeysOnSameResources()
6470
{
6571
$store = $this->getStore();
@@ -109,4 +115,9 @@ public function testSaveTwice()
109115

110116
$store->delete($key);
111117
}
118+
119+
public function lotOfData()
120+
{
121+
return array_fill(0, 1000, []);
122+
}
112123
}

0 commit comments

Comments
 (0)
0