コード例 #1
0
ファイル: TestCaseTest.php プロジェクト: jacobsenj/phpunit
 /**
  * @test
  */
 public function protectedStaticPropertyForAccessibleMockObjectCanSetOriginal()
 {
     $newValue = 'New value ' . microtime();
     $this->accessibleMock->_setStatic('protectedStaticProperty', $newValue);
     self::assertSame($newValue, Tx_Phpunit_Tests_Unit_Fixtures_ProtectedClass::getStaticProperty());
 }
コード例 #2
0
ファイル: ProtectedClass.php プロジェクト: jacobsenj/phpunit
 /**
  * Sets the content of the static property.
  *
  * @param string $value
  *
  * @return void
  */
 public static function setStaticProperty($value)
 {
     self::$protectedStaticProperty = $value;
 }