Eccube\Tests\EccubeTestCase::cleanUpProperties PHP Method

cleanUpProperties() protected method

このメソッドは、PHPUnit のメモリリーク解消のため、 tearDown() メソッドでコールされる.
protected cleanUpProperties ( )
    protected function cleanUpProperties()
    {
        $refl = new \ReflectionObject($this);
        foreach ($refl->getProperties() as $prop) {
            if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) {
                $prop->setAccessible(true);
                $prop->setValue($this, null);
            }
        }
        \Eccube\Application::clearInstance();
    }