Merge branch '3.4' into 4.0
* 3.4: Fix tests for legacy phpunit versions Add missing Ukrainian translations Use an empty string as default for assertEquals
This commit is contained in:
commit
7e01f9b138
@ -1027,7 +1027,7 @@ HTML;
|
|||||||
/**
|
/**
|
||||||
* @dataProvider getBaseTagData
|
* @dataProvider getBaseTagData
|
||||||
*/
|
*/
|
||||||
public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri = null, $description = null)
|
public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri = null, $description = '')
|
||||||
{
|
{
|
||||||
$crawler = new Crawler('<html><base href="'.$baseValue.'"><a href="'.$linkValue.'"></a></html>', $currentUri);
|
$crawler = new Crawler('<html><base href="'.$baseValue.'"><a href="'.$linkValue.'"></a></html>', $currentUri);
|
||||||
$this->assertEquals($expectedUri, $crawler->filterXPath('//a')->link()->getUri(), $description);
|
$this->assertEquals($expectedUri, $crawler->filterXPath('//a')->link()->getUri(), $description);
|
||||||
|
@ -73,7 +73,7 @@ class StopwatchEventTest extends TestCase
|
|||||||
$event->start();
|
$event->start();
|
||||||
usleep(200000);
|
usleep(200000);
|
||||||
$event->stop();
|
$event->stop();
|
||||||
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
|
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
|
||||||
|
|
||||||
$event = new StopwatchEvent(microtime(true) * 1000);
|
$event = new StopwatchEvent(microtime(true) * 1000);
|
||||||
$event->start();
|
$event->start();
|
||||||
@ -83,7 +83,7 @@ class StopwatchEventTest extends TestCase
|
|||||||
$event->start();
|
$event->start();
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
$event->stop();
|
$event->stop();
|
||||||
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
|
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDurationBeforeStop()
|
public function testDurationBeforeStop()
|
||||||
@ -91,7 +91,7 @@ class StopwatchEventTest extends TestCase
|
|||||||
$event = new StopwatchEvent(microtime(true) * 1000);
|
$event = new StopwatchEvent(microtime(true) * 1000);
|
||||||
$event->start();
|
$event->start();
|
||||||
usleep(200000);
|
usleep(200000);
|
||||||
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
|
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
|
||||||
|
|
||||||
$event = new StopwatchEvent(microtime(true) * 1000);
|
$event = new StopwatchEvent(microtime(true) * 1000);
|
||||||
$event->start();
|
$event->start();
|
||||||
@ -100,7 +100,7 @@ class StopwatchEventTest extends TestCase
|
|||||||
usleep(50000);
|
usleep(50000);
|
||||||
$event->start();
|
$event->start();
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
$this->assertEquals(100, $event->getDuration(), null, self::DELTA);
|
$this->assertEquals(100, $event->getDuration(), '', self::DELTA);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -134,7 +134,7 @@ class StopwatchEventTest extends TestCase
|
|||||||
$event->start();
|
$event->start();
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
$event->ensureStopped();
|
$event->ensureStopped();
|
||||||
$this->assertEquals(300, $event->getDuration(), null, self::DELTA);
|
$this->assertEquals(300, $event->getDuration(), '', self::DELTA);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testStartTime()
|
public function testStartTime()
|
||||||
@ -151,7 +151,7 @@ class StopwatchEventTest extends TestCase
|
|||||||
$event->start();
|
$event->start();
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
$event->stop();
|
$event->stop();
|
||||||
$this->assertEquals(0, $event->getStartTime(), null, self::DELTA);
|
$this->assertEquals(0, $event->getStartTime(), '', self::DELTA);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testHumanRepresentation()
|
public function testHumanRepresentation()
|
||||||
|
@ -79,7 +79,7 @@ class StopwatchTest extends TestCase
|
|||||||
$event = $stopwatch->stop('foo');
|
$event = $stopwatch->stop('foo');
|
||||||
|
|
||||||
$this->assertInstanceOf('Symfony\Component\Stopwatch\StopwatchEvent', $event);
|
$this->assertInstanceOf('Symfony\Component\Stopwatch\StopwatchEvent', $event);
|
||||||
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
|
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -278,6 +278,42 @@
|
|||||||
<source>This value should not be identical to {{ compared_value_type }} {{ compared_value }}.</source>
|
<source>This value should not be identical to {{ compared_value_type }} {{ compared_value }}.</source>
|
||||||
<target>Значення не повинно бути ідентичним {{ compared_value_type }} {{ compared_value }}.</target>
|
<target>Значення не повинно бути ідентичним {{ compared_value_type }} {{ compared_value }}.</target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="73">
|
||||||
|
<source>The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.</source>
|
||||||
|
<target>Співвідношення сторін зображення занадто велике ({{ ratio }}). Максимальне співвідношення сторін {{ max_ratio }}.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="74">
|
||||||
|
<source>The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.</source>
|
||||||
|
<target>Співвідношення сторін зображення занадто мало ({{ ratio }}). Мінімальне співвідношення сторін {{ min_ratio }}.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="75">
|
||||||
|
<source>The image is square ({{ width }}x{{ height }}px). Square images are not allowed.</source>
|
||||||
|
<target>Зображення квадратне ({{ width }}x{{ height }}px). Квадратні зображення не дозволені.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="76">
|
||||||
|
<source>The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.</source>
|
||||||
|
<target>Зображення альбомної орієнтації ({{ width }}x{{ height }}px). Зображення альбомної орієнтації не дозволені.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="77">
|
||||||
|
<source>The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.</source>
|
||||||
|
<target>Зображення в портретній орієнтації ({{ width }}x{{ height }}px). Зображення в портретної орієнтації не дозволені.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="78">
|
||||||
|
<source>An empty file is not allowed.</source>
|
||||||
|
<target>Порожні файли не дозволені.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="79">
|
||||||
|
<source>The host could not be resolved.</source>
|
||||||
|
<target>Ім'я хоста не знайдено.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="80">
|
||||||
|
<source>This value does not match the expected {{ charset }} charset.</source>
|
||||||
|
<target>Значення не збігається з очікуваним {{ charset }} кодуванням.</target>
|
||||||
|
</trans-unit>
|
||||||
|
<trans-unit id="81">
|
||||||
|
<source>This is not a valid Business Identifier Code (BIC).</source>
|
||||||
|
<target>Це не дійсний банківський код (BIC).</target>
|
||||||
|
</trans-unit>
|
||||||
<trans-unit id="82">
|
<trans-unit id="82">
|
||||||
<source>Error</source>
|
<source>Error</source>
|
||||||
<target>Помилка</target>
|
<target>Помилка</target>
|
||||||
|
@ -4,7 +4,7 @@ yaml: |
|
|||||||
php: |
|
php: |
|
||||||
"\\0 \\ \\a \\b \\n"
|
"\\0 \\ \\a \\b \\n"
|
||||||
---
|
---
|
||||||
test: null
|
test: 'null'
|
||||||
yaml: |
|
yaml: |
|
||||||
"\0"
|
"\0"
|
||||||
php: |
|
php: |
|
||||||
|
Reference in New Issue
Block a user