@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | $repository = new FakeRepository($entityManager, $metadata, TestEntity::class); |
| 56 | 56 | |
| 57 | - $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) { |
|
| 57 | + $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) { |
|
| 58 | 58 | $repository->save($entity); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | $repository = new FakeRepository($entityManager, $metadata, TestEntity::class); |
| 105 | 105 | |
| 106 | - $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) { |
|
| 106 | + $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) { |
|
| 107 | 107 | $repository->delete($entity); |
| 108 | 108 | }); |
| 109 | 109 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | protected function invalidEntityTest(FormFactory $formFactory, AdminInterface $admin) |
| 47 | 47 | { |
| 48 | - $this->assertExceptionRaised(Exception::class, function () use ($formFactory, $admin) { |
|
| 48 | + $this->assertExceptionRaised(Exception::class, function() use ($formFactory, $admin) { |
|
| 49 | 49 | $formFactory->create( |
| 50 | 50 | TestFormType::class, |
| 51 | 51 | [], |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $factory = new DataProviderFactory($entityManager); |
| 43 | 43 | $factory->add('a_data_provider', $dataProvider); |
| 44 | 44 | |
| 45 | - $this->assertExceptionRaised(Exception::class, function () use ($factory, $dataProvider) { |
|
| 45 | + $this->assertExceptionRaised(Exception::class, function() use ($factory, $dataProvider) { |
|
| 46 | 46 | $factory->add('a_data_provider', $dataProvider); |
| 47 | 47 | }); |
| 48 | 48 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | $factory = new DataProviderFactory($entityManager); |
| 96 | 96 | |
| 97 | - $this->assertExceptionRaised(Exception::class, function () use ($factory) { |
|
| 97 | + $this->assertExceptionRaised(Exception::class, function() use ($factory) { |
|
| 98 | 98 | $factory->create('MyEntityClass'); |
| 99 | 99 | }); |
| 100 | 100 | } |
@@ -108,10 +108,10 @@ discard block |
||
| 108 | 108 | $factory->add('a_data_provider', $dataProvider); |
| 109 | 109 | |
| 110 | 110 | $this->assertEquals($dataProvider, $factory->get('a_data_provider')); |
| 111 | - $this->assertExceptionRaised(Exception::class, function () use ($factory) { |
|
| 111 | + $this->assertExceptionRaised(Exception::class, function() use ($factory) { |
|
| 112 | 112 | $factory->get('wrong_data_provider'); |
| 113 | 113 | }); |
| 114 | - $this->assertExceptionRaised(Exception::class, function () use ($factory) { |
|
| 114 | + $this->assertExceptionRaised(Exception::class, function() use ($factory) { |
|
| 115 | 115 | $factory->get(null, null); |
| 116 | 116 | }); |
| 117 | 117 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | 'title' => 'Planet Application', |
| 37 | 37 | ]); |
| 38 | 38 | |
| 39 | - $this->assertExceptionRaised(LogicException::class, function () use ($configuration) { |
|
| 39 | + $this->assertExceptionRaised(LogicException::class, function() use ($configuration) { |
|
| 40 | 40 | $configuration->setParameters([ |
| 41 | 41 | 'an_other_configuration' => 'value', |
| 42 | 42 | ]); |