title: Google Test Fixtures
body: <p>I'm trying to understand how the Google Test Fixtures work.</p>
  <p>Say I have the following code:</p>
  <pre><code>class PhraseTest : public ::testing::Test
  {
       protected:
       virtual void SetUp()
       {      
           phraseClass * myPhrase1 = new createPhrase(&quot;1234567890&quot;);
           phraseClass * myPhrase2 = new createPhrase(&quot;1234567890&quot;);  
       }
  
       virtual void TearDown()
      {
          delete *myPhrase1;
          delete *myPhrase2;  
       }
  };
  
  
  
  TEST_F(PhraseTest, OperatorTest)
  {
      ASSERT_TRUE(*myPhrase1 == *myPhrase2);
  
  }
  </code></pre>
  <p>When I compile, why does it say <code>myPhrase1</code> and <code>myPhrase2</code> are undeclared in the <code>TEST_F</code>?</p>