public function testStaticMethodCall() { \TestClass\Shape::phlexmockMethod('setValue', function ($value) { self::$value = $value; }); \TestClass\Shape::phlexmockMethod('getValue', function () { return self::$value; }); \TestClass\Shape::setValue(200); $this->assertEquals(\TestClass\Shape::getValue(), 200); }