Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf594d3e

Browse files
committed
Debug tests
1 parent012c56b commitf594d3e

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
publicfunctiontestSaveWithDifferentResources()
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
publicfunctiontestSaveWithDifferentKeysOnSameResources()
6773
{
6874
$store =$this->getStore();
@@ -112,4 +118,9 @@ public function testSaveTwice()
112118

113119
$store->delete($key);
114120
}
121+
122+
publicfunctionlotOfData()
123+
{
124+
returnarray_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
namespaceSymfony\Component\Lock\Tests\Store;
1313

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

1618
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp