public function testStubbedReturnValueForStaticMethod()
 {
     if (!version_compare(PHP_VERSION, '5.3.0', '>=')) {
         $this->markTestSkipped('PHP 5.3 (or later) is required.');
     }
     $this->getMockClass('StaticMockTestClass', array('doSomething'), array(), 'StaticMockTestClassMock');
     StaticMockTestClassMock::staticExpects($this->any())->method('doSomething')->will($this->returnValue('something'));
     $this->assertEquals('something', StaticMockTestClassMock::doSomething());
 }
 public function testStubbedReturnValueForStaticMethod()
 {
     $this->getMockClass('StaticMockTestClass', array('doSomething'), array(), 'StaticMockTestClassMock');
     StaticMockTestClassMock::staticExpects($this->any())->method('doSomething')->will($this->returnValue('something'));
     $this->assertEquals('something', StaticMockTestClassMock::doSomething());
 }