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
3a5d992c
Commit
3a5d992c
authored
Feb 08, 2013
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace individual test suite component checks with global one
parent
3563829a
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
6 additions
and
95 deletions
+6
-95
tests/Silex/Tests/Application/FormTraitTest.php
tests/Silex/Tests/Application/FormTraitTest.php
+0
-7
tests/Silex/Tests/Application/MonologTraitTest.php
tests/Silex/Tests/Application/MonologTraitTest.php
+0
-7
tests/Silex/Tests/Application/SecurityTraitTest.php
tests/Silex/Tests/Application/SecurityTraitTest.php
+0
-7
tests/Silex/Tests/Application/SwiftmailerTraitTest.php
tests/Silex/Tests/Application/SwiftmailerTraitTest.php
+0
-7
tests/Silex/Tests/Application/TranslationTraitTest.php
tests/Silex/Tests/Application/TranslationTraitTest.php
+0
-7
tests/Silex/Tests/Application/TwigTraitTest.php
tests/Silex/Tests/Application/TwigTraitTest.php
+0
-7
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
+0
-7
tests/Silex/Tests/Provider/MonologServiceProviderTest.php
tests/Silex/Tests/Provider/MonologServiceProviderTest.php
+0
-7
tests/Silex/Tests/Provider/SecurityServiceProviderTest.php
tests/Silex/Tests/Provider/SecurityServiceProviderTest.php
+0
-7
tests/Silex/Tests/Provider/SwiftmailerServiceProviderTest.php
...s/Silex/Tests/Provider/SwiftmailerServiceProviderTest.php
+0
-7
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
+0
-7
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
+0
-11
tests/Silex/Tests/Route/SecurityTraitTest.php
tests/Silex/Tests/Route/SecurityTraitTest.php
+0
-7
tests/bootstrap.php
tests/bootstrap.php
+6
-0
No files found.
tests/Silex/Tests/Application/FormTraitTest.php
View file @
3a5d992c
...
...
@@ -23,13 +23,6 @@ use Silex\Provider\FormServiceProvider;
*/
class
FormTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/form'
))
{
$this
->
markTestSkipped
(
'Form dependency was not installed.'
);
}
}
public
function
testForm
()
{
$this
->
assertInstanceOf
(
'Symfony\Component\Form\FormBuilder'
,
$this
->
createApplication
()
->
form
());
...
...
tests/Silex/Tests/Application/MonologTraitTest.php
View file @
3a5d992c
...
...
@@ -25,13 +25,6 @@ use Monolog\Logger;
*/
class
MonologTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/monolog/monolog/src'
))
{
$this
->
markTestSkipped
(
'Monolog dependency was not installed.'
);
}
}
public
function
testLog
()
{
$app
=
$this
->
createApplication
();
...
...
tests/Silex/Tests/Application/SecurityTraitTest.php
View file @
3a5d992c
...
...
@@ -25,13 +25,6 @@ use Symfony\Component\HttpFoundation\Request;
*/
class
SecurityTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/security'
))
{
$this
->
markTestSkipped
(
'Security dependency was not installed.'
);
}
}
public
function
testUser
()
{
$request
=
Request
::
create
(
'/'
);
...
...
tests/Silex/Tests/Application/SwiftmailerTraitTest.php
View file @
3a5d992c
...
...
@@ -23,13 +23,6 @@ use Silex\Provider\SwiftmailerServiceProvider;
*/
class
SwiftmailerTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/swiftmailer/swiftmailer'
))
{
$this
->
markTestSkipped
(
'Swiftmailer dependency was not installed.'
);
}
}
public
function
testMail
()
{
$app
=
$this
->
createApplication
();
...
...
tests/Silex/Tests/Application/TranslationTraitTest.php
View file @
3a5d992c
...
...
@@ -23,13 +23,6 @@ use Silex\Provider\TranslationServiceProvider;
*/
class
TranslationTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/translation'
))
{
$this
->
markTestSkipped
(
'Translation dependency was not installed.'
);
}
}
public
function
testTrans
()
{
$app
=
$this
->
createApplication
();
...
...
tests/Silex/Tests/Application/TwigTraitTest.php
View file @
3a5d992c
...
...
@@ -25,13 +25,6 @@ use Symfony\Component\HttpFoundation\StreamedResponse;
*/
class
TwigTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/twig/twig'
))
{
$this
->
markTestSkipped
(
'Twig dependency was not installed.'
);
}
}
public
function
testRender
()
{
$app
=
$this
->
createApplication
();
...
...
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
View file @
3a5d992c
...
...
@@ -21,13 +21,6 @@ use Silex\Provider\DoctrineServiceProvider;
*/
class
DoctrineServiceProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/doctrine/common/lib'
)
||
!
is_dir
(
__DIR__
.
'/../../../../vendor/doctrine/dbal/lib'
))
{
$this
->
markTestSkipped
(
'Doctrine Common/DBAL dependencies were not installed.'
);
}
}
public
function
testOptionsInitializer
()
{
$app
=
new
Application
();
...
...
tests/Silex/Tests/Provider/MonologServiceProviderTest.php
View file @
3a5d992c
...
...
@@ -24,13 +24,6 @@ use Symfony\Component\HttpFoundation\Request;
*/
class
MonologServiceProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/monolog/monolog/src'
))
{
$this
->
markTestSkipped
(
'Monolog dependency was not installed.'
);
}
}
public
function
testRequestLogging
()
{
$app
=
$this
->
getApplication
();
...
...
tests/Silex/Tests/Provider/SecurityServiceProviderTest.php
View file @
3a5d992c
...
...
@@ -25,13 +25,6 @@ use Symfony\Component\HttpFoundation\Request;
*/
class
SecurityServiceProviderTest
extends
WebTestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/security'
))
{
$this
->
markTestSkipped
(
'Security dependency was not installed.'
);
}
}
/**
* @expectedException \LogicException
*/
...
...
tests/Silex/Tests/Provider/SwiftmailerServiceProviderTest.php
View file @
3a5d992c
...
...
@@ -19,13 +19,6 @@ use Symfony\Component\HttpFoundation\Response;
class
SwiftmailerServiceProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/swiftmailer/swiftmailer/lib'
))
{
$this
->
markTestSkipped
(
'Swiftmailer dependency was not installed.'
);
}
}
public
function
testSwiftMailerServiceIsSwiftMailer
()
{
$app
=
new
Application
();
...
...
tests/Silex/Tests/Provider/TwigServiceProviderTest.php
View file @
3a5d992c
...
...
@@ -23,13 +23,6 @@ use Symfony\Component\HttpFoundation\Request;
*/
class
TwigServiceProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/twig/twig/lib'
))
{
$this
->
markTestSkipped
(
'Twig dependency was not installed.'
);
}
}
public
function
testRegisterAndRender
()
{
$app
=
new
Application
();
...
...
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
View file @
3a5d992c
...
...
@@ -23,13 +23,6 @@ use Symfony\Component\Validator\Constraints as Assert;
*/
class
ValidatorServiceProviderTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/validator'
))
{
$this
->
markTestSkipped
(
'Validator dependency was not installed.'
);
}
}
public
function
testRegister
()
{
$app
=
new
Application
();
...
...
@@ -53,10 +46,6 @@ class ValidatorServiceProviderTest extends \PHPUnit_Framework_TestCase
*/
public
function
testValidatorConstraint
(
$email
,
$isValid
,
$nbGlobalError
,
$nbEmailError
,
$app
)
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/form'
))
{
$this
->
markTestSkipped
(
'Form component was not installed.'
);
}
$app
->
register
(
new
ValidatorServiceProvider
());
$app
->
register
(
new
FormServiceProvider
());
...
...
tests/Silex/Tests/Route/SecurityTraitTest.php
View file @
3a5d992c
...
...
@@ -24,13 +24,6 @@ use Symfony\Component\HttpFoundation\Request;
*/
class
SecurityTraitTest
extends
\PHPUnit_Framework_TestCase
{
public
function
setUp
()
{
if
(
!
is_dir
(
__DIR__
.
'/../../../../vendor/symfony/security'
))
{
$this
->
markTestSkipped
(
'Security dependency was not installed.'
);
}
}
public
function
testSecure
()
{
$app
=
new
Application
();
...
...
tests/bootstrap.php
View file @
3a5d992c
...
...
@@ -2,3 +2,9 @@
$loader
=
require
__DIR__
.
'/../vendor/autoload.php'
;
$loader
->
add
(
'Silex\Tests'
,
__DIR__
);
if
(
!
class_exists
(
'Symfony\Component\Form\Form'
))
{
echo
"You must install the dev dependencies using:
\n
"
;
echo
" composer install --dev
\n
"
;
exit
(
1
);
}
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