|
@@ 227-236 (lines=10) @@
|
| 224 |
|
$this->configuration->ensureProductionSettings(); |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
public function testEnsureProductionSettingsAutoGenerateProxyClassesAlways() |
| 228 |
|
{ |
| 229 |
|
$this->setProductionSettings(); |
| 230 |
|
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_ALWAYS); |
| 231 |
|
|
| 232 |
|
$this->expectException(ORMException::class); |
| 233 |
|
$this->expectExceptionMessage('Proxy Classes are always regenerating.'); |
| 234 |
|
|
| 235 |
|
$this->configuration->ensureProductionSettings(); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
public function testEnsureProductionSettingsAutoGenerateProxyClassesFileNotExists() |
| 239 |
|
{ |
|
@@ 238-247 (lines=10) @@
|
| 235 |
|
$this->configuration->ensureProductionSettings(); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
public function testEnsureProductionSettingsAutoGenerateProxyClassesFileNotExists() |
| 239 |
|
{ |
| 240 |
|
$this->setProductionSettings(); |
| 241 |
|
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS); |
| 242 |
|
|
| 243 |
|
$this->expectException(ORMException::class); |
| 244 |
|
$this->expectExceptionMessage('Proxy Classes are always regenerating.'); |
| 245 |
|
|
| 246 |
|
$this->configuration->ensureProductionSettings(); |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
public function testEnsureProductionSettingsAutoGenerateProxyClassesEval() |
| 250 |
|
{ |
|
@@ 249-258 (lines=10) @@
|
| 246 |
|
$this->configuration->ensureProductionSettings(); |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
public function testEnsureProductionSettingsAutoGenerateProxyClassesEval() |
| 250 |
|
{ |
| 251 |
|
$this->setProductionSettings(); |
| 252 |
|
$this->configuration->setAutoGenerateProxyClasses(AbstractProxyFactory::AUTOGENERATE_EVAL); |
| 253 |
|
|
| 254 |
|
$this->expectException(ORMException::class); |
| 255 |
|
$this->expectExceptionMessage('Proxy Classes are always regenerating.'); |
| 256 |
|
|
| 257 |
|
$this->configuration->ensureProductionSettings(); |
| 258 |
|
} |
| 259 |
|
|
| 260 |
|
public function testAddGetCustomStringFunction() |
| 261 |
|
{ |