Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Call to undefined method Symfony\Component\VarDumper\Caster\CutStub::clear() #23110

Closed
@ianfp

Description

@ianfp
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony version 3.3.2

I just upgraded from 3.2.x to 3.3.2, ran my test suite, and got this:

PHPUnit 6.2.1 by Sebastian Bergmann and contributors.

......................E

Time: 17.47 seconds, Memory: 153.28MB

There was 1 error:

1) Tests\My\Project\MyTestCase::myTest
Error: Call to undefined method Symfony\Component\VarDumper\Caster\CutStub::clear()

my-project/var/cache/test/appTestDebugProjectContainer.php:8865
my-project/vendor/doctrine/doctrine-bundle/DoctrineBundle.php:123
my-project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:155
my-project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php:193
my-project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php:205
my-project/tests/My/Project/ApiTestCase.php:112

Inspecting the CutStub class reveals that, indeed, it does not have a clear() method.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions