*/ class t3lib_beUserAuthTest extends tx_phpunit_testcase { /** * @var t3lib_beUserAuth */ private $fixture = NULL; public function setUp() { $this->fixture = new t3lib_beUserAuth(); } public function tearDown() { unset($this->fixture); t3lib_formProtection_Factory::purgeInstances(); } ///////////////////////////////////////// // Tests concerning the form protection ///////////////////////////////////////// /** * @test */ public function logoffCleansFormProtection() { $formProtection = $this->getMock( 't3lib_formprotection_BackendFormProtection', array('clean') ); $formProtection->expects($this->atLeastOnce())->method('clean'); t3lib_formProtection_Factory::set( 't3lib_formprotection_BackendFormProtection', $formProtection ); $this->fixture->logoff(); } } ?>