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