protected function setUp()
 {
     parent::setUp();
     $builder = new MockDelegateFunctionBuilder();
     $builder->build();
     $this->className = $builder->getFullyQualifiedClassName();
 }
 /**
  * Test build() would never create the same class name.
  *
  * @test
  */
 public function testSubsequentCallsProduceDifferentClasses()
 {
     $builder = new MockDelegateFunctionBuilder();
     $builder->build();
     $class1 = $builder->getFullyQualifiedClassName();
     $builder->build();
     $class2 = $builder->getFullyQualifiedClassName();
     $builder2 = new MockDelegateFunctionBuilder();
     $builder2->build();
     $class3 = $builder2->getFullyQualifiedClassName();
     $this->assertNotEquals($class1, $class2);
     $this->assertNotEquals($class1, $class3);
     $this->assertNotEquals($class2, $class3);
 }
 /**
  * Returns test cases for testDeserializationInNewProcess().
  *
  * @return array Test cases.
  */
 public function provideTestDeserializationInNewProcess()
 {
     $builder = new MockDelegateFunctionBuilder();
     $builder->build("min");
     return [[serialize($this->getMockForAbstractClass($builder->getFullyQualifiedClassName()))]];
 }