@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $this |
| 44 | 44 | ->given($factory = $this->createFactory()) |
| 45 | 45 | ->then() |
| 46 | - ->exception(function () { |
|
| 46 | + ->exception(function() { |
|
| 47 | 47 | DriverFactory::registerAnnotationDriver(User::class); |
| 48 | 48 | })->isInstanceOf(\InvalidArgumentException::class) |
| 49 | 49 | ; |
@@ -37,10 +37,10 @@ |
||
| 37 | 37 | ->given($invalidCacheDir = __DIR__.'/Invalid') |
| 38 | 38 | ->given($nonWritableCacheDir = '/root') |
| 39 | 39 | ->then() |
| 40 | - ->exception(function () use ($invalidCacheDir) { |
|
| 40 | + ->exception(function() use ($invalidCacheDir) { |
|
| 41 | 41 | new FileCache($invalidCacheDir); |
| 42 | 42 | })->isInstanceOf(\InvalidArgumentException::class) |
| 43 | - ->exception(function () use ($nonWritableCacheDir) { |
|
| 43 | + ->exception(function() use ($nonWritableCacheDir) { |
|
| 44 | 44 | new FileCache($nonWritableCacheDir); |
| 45 | 45 | })->isInstanceOf(\InvalidArgumentException::class) |
| 46 | 46 | ; |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | $this |
| 104 | 104 | ->given($driver = $this->createEmptyDriver()) |
| 105 | 105 | ->then() |
| 106 | - ->exception(function () use ($driver) { |
|
| 106 | + ->exception(function() use ($driver) { |
|
| 107 | 107 | $driver->loadMetadataForClass(User::class); |
| 108 | 108 | })->isInstanceOf(MappingException::class) |
| 109 | 109 | ; |
@@ -172,14 +172,14 @@ |
||
| 172 | 172 | $this |
| 173 | 173 | ->given($driver = $this->createEmptyDriver()) |
| 174 | 174 | ->then() |
| 175 | - ->exception(function () use ($driver) { |
|
| 175 | + ->exception(function() use ($driver) { |
|
| 176 | 176 | $driver->getAllClassNames(); |
| 177 | 177 | })->isInstanceOf(MappingException::class); |
| 178 | 178 | |
| 179 | 179 | $this |
| 180 | 180 | ->given($driver = $this->createDriverWithInvalidPaths()) |
| 181 | 181 | ->then() |
| 182 | - ->exception(function () use ($driver) { |
|
| 182 | + ->exception(function() use ($driver) { |
|
| 183 | 183 | $driver->getAllClassNames(); |
| 184 | 184 | })->isInstanceOf(MappingException::class); |
| 185 | 185 | } |
@@ -38,10 +38,10 @@ |
||
| 38 | 38 | $this |
| 39 | 39 | ->given($driver = $this->createDriver()) |
| 40 | 40 | ->then() |
| 41 | - ->exception(function () use ($driver) { |
|
| 41 | + ->exception(function() use ($driver) { |
|
| 42 | 42 | $driver->loadMetadataForClass('Cubiche\Core\Metadata\Tests\Fixtures\Post'); |
| 43 | 43 | })->isInstanceOf(MappingException::class) |
| 44 | - ->exception(function () use ($driver) { |
|
| 44 | + ->exception(function() use ($driver) { |
|
| 45 | 45 | $driver->loadMetadataForClass('Cubiche\Core\Metadata\Tests\Fixtures\Blog'); |
| 46 | 46 | })->isInstanceOf(MappingException::class) |
| 47 | 47 | ; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $this |
| 47 | 47 | ->given($driver = $this->createDriver()) |
| 48 | 48 | ->then() |
| 49 | - ->exception(function () use ($driver) { |
|
| 49 | + ->exception(function() use ($driver) { |
|
| 50 | 50 | $driver->loadMetadataForClass('Cubiche\Core\Metadata\Tests\Fixtures\Venue'); |
| 51 | 51 | })->isInstanceOf(MappingException::class) |
| 52 | 52 | ; |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $this |
| 42 | 42 | ->given($separator = '') |
| 43 | 43 | ->then() |
| 44 | - ->exception(function () use ($separator) { |
|
| 44 | + ->exception(function() use ($separator) { |
|
| 45 | 45 | new DefaultFileLocator([], $separator); |
| 46 | 46 | })->isInstanceOf(\InvalidArgumentException::class) |
| 47 | 47 | ; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ]) |
| 86 | 86 | ) |
| 87 | 87 | ->then() |
| 88 | - ->exception(function () use ($locator) { |
|
| 88 | + ->exception(function() use ($locator) { |
|
| 89 | 89 | $locator->getAllClassNames('.xml'); |
| 90 | 90 | })->isInstanceOf(MappingException::class) |
| 91 | 91 | ; |