Skip to content

Commit ecc7ca5

Browse files
committed
Debug tests
1 parent 012c56b commit ecc7ca5

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
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/Cache/Tests/Adapter/AbstractRedisAdapterTest.php

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

4242
public static function tearDownAfterClass()
4343
{
44-
self::$redis->flushDB();
4544
self::$redis = null;
4645
}
4746
}

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

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

2222
public static function tearDownAfterClass()
2323
{
24-
self::$redis->getConnection()->getConnectionByKey('foo')->executeCommand(self::$redis->createCommand('FLUSHDB'));
2524
self::$redis = null;
2625
}
2726
}

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

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

4242
public static function tearDownAfterClass()
4343
{
44-
self::$redis->flushDB();
4544
self::$redis = null;
4645
}
4746
}

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)