Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
8e11cfa5
Commit
8e11cfa5
authored
Feb 08, 2013
by
Victor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tests] Make use of the @requires annotation for PHP version
parent
1e0dd622
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
35 deletions
+16
-35
tests/Silex/Tests/Application/FormTraitTest.php
tests/Silex/Tests/Application/FormTraitTest.php
+2
-4
tests/Silex/Tests/Application/MonologTraitTest.php
tests/Silex/Tests/Application/MonologTraitTest.php
+2
-4
tests/Silex/Tests/Application/SecurityTraitTest.php
tests/Silex/Tests/Application/SecurityTraitTest.php
+2
-4
tests/Silex/Tests/Application/SwiftmailerTraitTest.php
tests/Silex/Tests/Application/SwiftmailerTraitTest.php
+2
-4
tests/Silex/Tests/Application/TranslationTraitTest.php
tests/Silex/Tests/Application/TranslationTraitTest.php
+2
-4
tests/Silex/Tests/Application/TwigTraitTest.php
tests/Silex/Tests/Application/TwigTraitTest.php
+2
-4
tests/Silex/Tests/Application/UrlGeneratorTraitTest.php
tests/Silex/Tests/Application/UrlGeneratorTraitTest.php
+2
-7
tests/Silex/Tests/Route/SecurityTraitTest.php
tests/Silex/Tests/Route/SecurityTraitTest.php
+2
-4
No files found.
tests/Silex/Tests/Application/FormTraitTest.php
View file @
8e11cfa5
...
...
@@ -18,15 +18,13 @@ use Silex\Provider\FormServiceProvider;
* FormTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
FormTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/form'
))
{
$this
->
markTestSkipped
(
'Form dependency was not installed.'
);
}
...
...
tests/Silex/Tests/Application/MonologTraitTest.php
View file @
8e11cfa5
...
...
@@ -20,15 +20,13 @@ use Monolog\Logger;
* MonologTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
MonologTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/monolog/monolog/src'
))
{
$this
->
markTestSkipped
(
'Monolog dependency was not installed.'
);
}
...
...
tests/Silex/Tests/Application/SecurityTraitTest.php
View file @
8e11cfa5
...
...
@@ -20,15 +20,13 @@ use Symfony\Component\HttpFoundation\Request;
* SecurityTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
SecurityTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/security'
))
{
$this
->
markTestSkipped
(
'Security dependency was not installed.'
);
}
...
...
tests/Silex/Tests/Application/SwiftmailerTraitTest.php
View file @
8e11cfa5
...
...
@@ -18,15 +18,13 @@ use Silex\Provider\SwiftmailerServiceProvider;
* SwiftmailerTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
SwiftmailerTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/swiftmailer/swiftmailer'
))
{
$this
->
markTestSkipped
(
'Swiftmailer dependency was not installed.'
);
}
...
...
tests/Silex/Tests/Application/TranslationTraitTest.php
View file @
8e11cfa5
...
...
@@ -18,15 +18,13 @@ use Silex\Provider\TranslationServiceProvider;
* TranslationTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
TranslationTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/translation'
))
{
$this
->
markTestSkipped
(
'Translation dependency was not installed.'
);
}
...
...
tests/Silex/Tests/Application/TwigTraitTest.php
View file @
8e11cfa5
...
...
@@ -20,15 +20,13 @@ use Symfony\Component\HttpFoundation\StreamedResponse;
* TwigTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
TwigTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/twig/twig'
))
{
$this
->
markTestSkipped
(
'Twig dependency was not installed.'
);
}
...
...
tests/Silex/Tests/Application/UrlGeneratorTraitTest.php
View file @
8e11cfa5
...
...
@@ -18,16 +18,11 @@ use Silex\Provider\UrlGeneratorServiceProvider;
* UrlGeneratorTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
UrlGeneratorTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
}
public
function
testUrl
()
{
$app
=
$this
->
createApplication
();
...
...
tests/Silex/Tests/Route/SecurityTraitTest.php
View file @
8e11cfa5
...
...
@@ -19,15 +19,13 @@ use Symfony\Component\HttpFoundation\Request;
* SecurityTrait test cases.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @requires PHP 5.4
*/
class
SecurityTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
version_compare
(
phpversion
(),
'5.4.0'
,
'<'
))
{
$this
->
markTestSkipped
(
'PHP 5.4 is required for this test'
);
}
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/security'
))
{
$this
->
markTestSkipped
(
'Security dependency was not installed.'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment