Skip to content

Commit

Permalink
Update test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindrakhokharia committed Feb 18, 2019
1 parent 68b9d78 commit 972dc50
Show file tree
Hide file tree
Showing 22 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Tests/Form/Core/Type/CaptchaTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class CaptchaTypeTest extends TypeTestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
4 changes: 2 additions & 2 deletions Tests/Form/Type/TypeTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class TypeTestCase extends BaseTypeTestCase
{
protected $requestStack;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -37,6 +37,6 @@ protected function getExtensions()

protected function createRequestStackMock()
{
return $this->requestStack = $this->getMock('Symfony\Component\HttpFoundation\RequestStack');
return $this->requestStack = $this->createMock('Symfony\Component\HttpFoundation\RequestStack');
}
}
2 changes: 1 addition & 1 deletion Tests~/DoctrineMongoTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
abstract class DoctrineMongoTestCase extends \PHPUnit_Framework_TestCase
{
protected function setUp()
protected function setUp(): void
{
if (!class_exists('Mongo')) {
$this->markTestSkipped('Mongo PHP/PECL Extension is not available.');
Expand Down
2 changes: 1 addition & 1 deletion Tests~/DoctrineOrmTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
abstract class DoctrineOrmTestCase extends \PHPUnit_Framework_TestCase
{
protected function setUp()
protected function setUp(): void
{
if (!class_exists('Doctrine\\Common\\Version')) {
$this->markTestSkipped('Doctrine is not available.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class AbstractAutocompleteTypeTestCase extends TypeTestCase
{
protected $em;

protected function tearDown()
protected function tearDown(): void
{
parent::tearDown();

Expand Down Expand Up @@ -119,7 +119,7 @@ public function testValueAjaxData()

protected function createRegistryMock($name, $em)
{
$registry = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry');
$registry = $this->createMock('Doctrine\Common\Persistence\ManagerRegistry');
$registry->expects($this->any())
->method('getManager')
->with($this->equalTo($name))
Expand Down
2 changes: 1 addition & 1 deletion Tests~/Form/Doctrine/Type/DocumentAutocompleteTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function getTypeName()

const SINGLE_IDENT_CLASS = 'Genemu\Bundle\FormBundle\Tests\Fixtures\Document\SingleIdentDocument';

public function setUp()
public function setUp(): void
{
if (!class_exists('Mongo')) {
$this->markTestSkipped('Mongo PHP/PECL Extension is not available.');
Expand Down
6 changes: 3 additions & 3 deletions Tests~/Form/Doctrine/Type/DocumentAutocompleterTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DocumentAutocompleterTypeTest extends TypeTestCase

private $documentManager;

public function setUp()
public function setUp(): void
{
if (!class_exists('Mongo')) {
$this->markTestSkipped('Mongo PHP/PECL Extension is not available.');
Expand All @@ -50,7 +50,7 @@ public function setUp()
parent::setUp();
}

protected function tearDown()
protected function tearDown(): void
{
parent::tearDown();

Expand Down Expand Up @@ -269,7 +269,7 @@ public function testValueAjaxMultipleData()

protected function createRegistryMock($name, $dm)
{
$registry = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry');
$registry = $this->createMock('Doctrine\Common\Persistence\ManagerRegistry');
$registry->expects($this->any())
->method('getManager')
->with($this->equalTo($name))
Expand Down
4 changes: 2 additions & 2 deletions Tests~/Form/Doctrine/Type/EntityAutocompleteTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EntityAutocompleteTypeTest extends AbstractAutocompleteTypeTestCase
{
const SINGLE_IDENT_CLASS = 'Genemu\Bundle\FormBundle\Tests\Fixtures\Entity\SingleIdentEntity';

public function setUp()
public function setUp(): void
{
if (!class_exists('Doctrine\\Common\\Version')) {
$this->markTestSkipped('Doctrine is not available.');
Expand All @@ -51,7 +51,7 @@ public function setUp()
}
}

protected function tearDown()
protected function tearDown(): void
{
parent::tearDown();

Expand Down
6 changes: 3 additions & 3 deletions Tests~/Form/Doctrine/Type/EntityAutocompleterTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class EntityAutocompleterTypeTest extends TypeTestCase

private $em;

public function setUp()
public function setUp(): void
{
if (!class_exists('Doctrine\\Common\\Version')) {
$this->markTestSkipped('Doctrine is not available.');
Expand All @@ -58,7 +58,7 @@ public function setUp()
}
}

protected function tearDown()
protected function tearDown(): void
{
parent::tearDown();

Expand Down Expand Up @@ -295,7 +295,7 @@ public function testValueAjaxMultipleData()

protected function createRegistryMock($name, $em)
{
$registry = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry');
$registry = $this->createMock('Doctrine\Common\Persistence\ManagerRegistry');
$registry->expects($this->any())
->method('getManager')
->with($this->equalTo($name))
Expand Down
2 changes: 1 addition & 1 deletion Tests~/Form/JQuery/Type/FileTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FileTypeTest extends TypeTestCase
const FILE_CLASS = 'Symfony\Component\HttpFoundation\File\File';
const IMAGE_CLASS = 'Genemu\Bundle\FormBundle\Gd\File\Image';

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Form/JQuery/Type/ImageTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ImageTypeTest extends TypeTestCase
const FILE_CLASS = 'Symfony\Component\HttpFoundation\File\File';
const IMAGE_CLASS = 'Genemu\Bundle\FormBundle\Gd\File\Image';

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/File/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
class ImageTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/BackgroundTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class BackgroundTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/BorderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class BorderTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/ColorizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class ColorizeTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/CropTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class CropTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/GrayScaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class GrayScaleTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/NegateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class NegateTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/RotateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class RotateTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/StripTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class StripTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/Filter/TextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class TextTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion Tests~/Gd/GdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class GdTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 972dc50

Please sign in to comment.