コード例 #1
0
 public function setUp()
 {
     $namePrettifier = new PHPUnit_Util_TestDox_NamePrettifier();
     $this->outputService = new Tx_Phpunit_Service_FakeOutputService();
     $fixtureClassName = $this->createAccessibleProxy();
     $this->fixture = new $fixtureClassName();
     $this->fixture->injectNamePrettifier($namePrettifier);
     $this->fixture->injectOutputService($this->outputService);
 }
コード例 #2
0
ファイル: TestListenerTest.php プロジェクト: TrueType/phpunit
 protected function setUp()
 {
     $namePrettifier = new \PHPUnit_Util_TestDox_NamePrettifier();
     $this->outputService = new \Tx_Phpunit_Service_FakeOutputService();
     $subjectClassName = $this->createAccessibleProxy();
     $this->subject = new $subjectClassName();
     $this->subject->injectNamePrettifier($namePrettifier);
     $this->subject->injectOutputService($this->outputService);
 }