File tree Expand file tree Collapse file tree 5 files changed +18
-5
lines changed
Filter options
Security/Tests/Http/RememberMe Expand file tree Collapse file tree 5 files changed +18
-5
lines changed
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ install:
52
52
- if [[ $deps != skip ]]; then COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi;
53
53
- if [[ $deps != skip && $deps ]]; then php .travis.php $TRAVIS_COMMIT_RANGE $TRAVIS_BRANCH $COMPONENTS; fi;
54
54
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then SYMFONY_VERSION=$(git ls-remote --heads | grep -o '/[1-9].*' | tail -n 1 | sed s/.//); else SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*'); fi;
55
- - if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then git fetch origin $SYMFONY_VERSION; git checkout -m FETCH_HEAD; fi;
55
+ - if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then git fetch origin $SYMFONY_VERSION; git checkout -m FETCH_HEAD; COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi;
56
56
- if [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]]; then LEGACY=,legacy; fi;
57
57
- export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev;
58
58
- if [[ ! $deps ]]; then composer update --prefer-dist; else export SYMFONY_DEPRECATIONS_HELPER=weak; fi;
Original file line number Diff line number Diff line change 14
14
- SET PHP=1
15
15
- SET ANSICON=121x90 (121x90)
16
16
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
17
+ - REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
17
18
18
19
install :
19
20
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
@@ -57,7 +58,6 @@ install:
57
58
58
59
test_script :
59
60
- cd c:\projects\symfony
60
- - Setlocal EnableDelayedExpansion
61
61
- SET X=0
62
62
- copy /Y c:\php\php.ini-min c:\php\php.ini
63
63
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
Original file line number Diff line number Diff line change 24
24
25
25
class PersistentTokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase
26
26
{
27
+ public static function setUpBeforeClass ()
28
+ {
29
+ try {
30
+ random_bytes (1 );
31
+ } catch (\Exception $ e ) {
32
+ throw new \PHPUnit_Framework_SkippedTestError ($ e ->getMessage ());
33
+ }
34
+ }
35
+
27
36
public function testAutoLoginReturnsNullWhenNoCookie ()
28
37
{
29
38
$ service = $ this ->getService (null , array ('name ' => 'foo ' ));
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ public function supportsNormalization($data, $format = null)
59
59
*/
60
60
public function supportsDenormalization ($ data , $ type , $ format = null )
61
61
{
62
+ if (PHP_VERSION_ID < 50307 ) {
63
+ return class_exists ($ type ) && in_array ('Symfony\Component\Serializer\Normalizer\DenormalizableInterface ' , class_implements ($ type ), true );
64
+ }
65
+
62
66
return is_subclass_of ($ type , 'Symfony\Component\Serializer\Normalizer\DenormalizableInterface ' );
63
67
}
64
68
}
Original file line number Diff line number Diff line change @@ -255,12 +255,12 @@ public function testFallbackCatalogueResources()
255
255
256
256
$ resources = $ catalogues ['en ' ]->getResources ();
257
257
$ this ->assertCount (1 , $ resources );
258
- $ this ->assertContains ( __DIR__ .' / fixtures/ resources.yml ' , $ resources );
258
+ $ this ->assertContains ( __DIR__ .DIRECTORY_SEPARATOR . ' fixtures ' . DIRECTORY_SEPARATOR . ' resources.yml ' , $ resources );
259
259
260
260
$ resources = $ catalogues ['en_GB ' ]->getResources ();
261
261
$ this ->assertCount (2 , $ resources );
262
- $ this ->assertContains ( __DIR__ .' / fixtures/ empty.yml ' , $ resources );
263
- $ this ->assertContains ( __DIR__ .' / fixtures/ resources.yml ' , $ resources );
262
+ $ this ->assertContains ( __DIR__ .DIRECTORY_SEPARATOR . ' fixtures ' . DIRECTORY_SEPARATOR . ' empty.yml ' , $ resources );
263
+ $ this ->assertContains ( __DIR__ .DIRECTORY_SEPARATOR . ' fixtures ' . DIRECTORY_SEPARATOR . ' resources.yml ' , $ resources );
264
264
}
265
265
266
266
/**
You can’t perform that action at this time.
0 commit comments