Added strict_types=1 and added test

This commit is contained in:
Basilius Sauter
2016-04-15 18:56:08 +02:00
parent 5a405fc2db
commit 7afa27246b
4 changed files with 58 additions and 16 deletions
+7 -8
View File
@@ -1,19 +1,14 @@
<?php
declare(strict_types=1);
namespace LotGD\Core\Tests;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\ORM\{
EntityManager,
Mapping\AnsiQuoteStrategy,
Tools\Setup,
Tools\SchemaTool
};
use Doctrine\ORM\Mapping\{
AnsiQuoteStrategy,
ClassMetadata,
Driver\DriverChain,
Driver\AnnotationDriver
};
/**
* Description of ModelTestCase
@@ -40,7 +35,11 @@ abstract class ModelTestCase extends \PHPUnit_Framework_TestCase {
$schemaTool->createSchema($metaData);
}
protected function getEntityManager() {
/**
* Returns the entity manager to run tests.
* @return \LotGD\Core\Tests\EntityManager
*/
protected function getEntityManager(): EntityManager {
return $this->_em;
}
}