/**
  * Test simple function return faking without consraints.
  */
 public function testMockWithReturn()
 {
     $this->object = new PHPUnit_Extensions_MockStaticMethod('TestStatic::test', $this->test_scope_object);
     // CHanging return value.
     $this->object->expects($this->atLeastOnce())->will($this->returnValue('DEF'));
     $this->assertSame('DEF', $this->test_scope_object->callStatic());
     // From this scope the original method is called.
     $this->assertSame('ABC', TestStatic::test());
     $this->object->restore();
     // We are back in 1985.
     $this->assertSame('ABC', $this->test_scope_object->callStatic());
 }