use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use Symfony\Component\ExpressionLanguage\SyntaxError;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class EntityValueResolverTest extends TestCase
{ public function testResolveWithoutClass() { $manager =
$this->
getMockBuilder(ObjectManager::
class)->
getMock();
$registry =
$this->
createRegistry($manager);
$resolver =
new EntityValueResolver($registry);
$request =
new Request();
$argument =
new ArgumentMetadata('arg', null, false, false, null
);
$this->
assertSame([],
$resolver->
resolve($request,
$argument));
} public function testResolveWithoutAttribute() { $manager =
$this->
getMockBuilder(ObjectManager::
class)->
getMock();