This commit is contained in:
Fabien Potencier 2012-12-11 11:40:22 +01:00
parent d2885adffe
commit 7f3be5c49d
20 changed files with 23 additions and 31 deletions

View File

@ -11,7 +11,6 @@
namespace Symfony\Bridge\Doctrine\Tests\Logger;
class DbalLoggerTest extends \PHPUnit_Framework_TestCase
{
/**

View File

@ -239,7 +239,6 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
$this->assertRegExp('/Did you mean this/', $e->getMessage(), '->find() throws an \InvalidArgumentException if command does not exist, with one alternative');
}
$application->add(new \Foo1Command());
$application->add(new \Foo2Command());

View File

@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Console\Tests\Formatter;
use Symfony\Component\Console\Formatter\OutputFormatter;

View File

@ -53,7 +53,6 @@ class DateTimeToRfc3339Transformer extends BaseDateTimeTransformer
return null;
}
$dateTime = new \DateTime($rfc3339);
if ($this->outputTimezone !== $this->inputTimezone) {

View File

@ -18,4 +18,3 @@ abstract class DateTimeTestCase extends LocalizedTestCase
self::assertEquals($expected->format('c'), $actual->format('c'));
}
}

View File

@ -227,7 +227,6 @@ class ViolationMapperTest extends \PHPUnit_Framework_TestCase
{
// The mapping must be deterministic! If a child has the property path "[street]",
// "data[street]" should be mapped, but "data.street" should not!
return array(
// mapping target, child name, its property path, grand child name, its property path, violation path
array(self::LEVEL_0, 'address', 'address', 'street', 'street', ''),
@ -1260,7 +1259,6 @@ class ViolationMapperTest extends \PHPUnit_Framework_TestCase
// 1) the error actually maps to an existing child and
// 2) the property path of that child (relative to the form providing
// the mapping) matches the left side of the mapping
return array(
// mapping target, map from, map to, child name, its property path, grand child name, its property path, violation path
array(self::LEVEL_1, 'foo', 'address', 'foo', 'foo', 'address', 'address', 'street', 'street', 'children[foo].children[street].data'),

View File

@ -155,7 +155,6 @@ class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase
array('justOne' => true)
);
$this->storage->destroy('foo');
}

View File

@ -54,6 +54,7 @@ class NativeFileSessionHandlerTest extends \PHPUnit_Framework_TestCase
public function savePathDataProvider()
{
$base = sys_get_temp_dir();
return array(
array("$base/foo", "$base/foo", "$base/foo"),
array("5;$base/foo", "5;$base/foo", "$base/foo"),

View File

@ -126,4 +126,3 @@ class MongoDbProfilerStorageTest extends AbstractProfilerStorageTest
}
}
}

View File

@ -125,7 +125,8 @@ function get_data($index, $dataDir, $locale = 'en', $constraint = null)
return $data;
}
function icu_version() {
function icu_version()
{
exec('icu-config --version', $output, $result);
if ($result !== 0 || !isset($output[0])) {
@ -135,13 +136,15 @@ function icu_version() {
return $output[0];
}
function normalize_icu_version($version) {
function normalize_icu_version($version)
{
preg_match('/^(?P<version>[0-9]\.[0-9]|[0-9]{2,})/', $version, $matches);
return $matches['version'];
}
function download_icu_data($version) {
function download_icu_data($version)
{
$icu = parse_ini_file(__DIR__.'/icu.ini');
if (!isset($icu[$version])) {

View File

@ -16,7 +16,7 @@ namespace Symfony\Component\Process\Tests;
*/
abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
{
protected abstract function getProcess($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array());
abstract protected function getProcess($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array());
/**
* @expectedException \InvalidArgumentException
@ -233,7 +233,6 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
$this->markTestSkipped('Windows does not support POSIX signals');
}
$process = $this->getProcess('php -r "while (true) {}"');
$process->start();
$process->stop();

View File

@ -58,7 +58,6 @@ class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandle
return $this->httpUtils->createRedirectResponse($request, $this->determineTargetUrl($request));
}
/**
* Get the provider key.
*

View File

@ -170,5 +170,4 @@ class RegexValidatorTest extends \PHPUnit_Framework_TestCase
));
$this->assertNull($constraint->getHtmlPattern());
}
}