Auth = new Auth(); } /** * Cleans up the environment after running a test. */ protected function tearDown() { $this->Auth = null; parent::tearDown(); } /** * Tests Auth::parse() */ public function testParse() { $this->assertEquals(Auth::$AUTHENTICATED, Auth::parse('authenticated')); $this->assertEquals(Auth::$SIGNED, Auth::parse('signed')); $this->assertEquals(Auth::$NONE, Auth::parse('none')); $this->assertEquals(Auth::$NONE, Auth::parse('foo')); } }