/** * * Tests that the reset method causes all properties available through getters to be reset to null */ public function testReset() { $this->assertSame($this->auth, $this->auth->reset()); $reflect = new ReflectionObject($this->auth); foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { if (substr($method, 0, 3) === 'get') { $this->assertNull($this->auth->{$method}()); } } }