/**
  * @test
  */
 public function magicMethodsAreBlackListedByDefault()
 {
     $builder = new MockConfigurationBuilder();
     $builder->addTarget("Mockery\\Generator\\ClassWithMagicCall");
     $methods = $builder->getMockConfiguration()->getMethodsToMock();
     $this->assertEquals(1, count($methods));
     $this->assertEquals("foo", $methods[0]->getName());
 }
 /**
  * @test
  */
 public function shouldAppendConstructorAndPropertyForInstanceMock()
 {
     $builder = new MockConfigurationBuilder();
     $builder->setInstanceMock(true);
     $config = $builder->getMockConfiguration();
     $pass = new InstanceMockPass();
     $code = $pass->apply('class Dave { }', $config);
     $this->assertContains('public function __construct', $code);
     $this->assertContains('protected $_mockery_ignoreVerification', $code);
 }