コード例 #1
0
 /**
  * @test
  */
 public function flashMessageServiceInitiallyIsEmpty()
 {
     $this->assertSame(array(), $this->flashMessageService->_get('flashMessageQueues'));
 }
コード例 #2
0
ファイル: TestCaseTest.php プロジェクト: TrueType/phpunit
 /**
  * @test
  */
 public function publicPropertyForAccessibleMockObjectIsDirectlyAccessible()
 {
     self::assertSame('This is a public property.', $this->accessibleMock->_get('publicProperty'));
 }
コード例 #3
0
ファイル: ResponseTest.php プロジェクト: khanhdeux/typo3test
 /**
  * @test
  */
 public function appendContentAppendsContentCorrectly()
 {
     $this->mockResponse->_set('content', 'foo');
     $this->mockResponse->appendContent('bar');
     $this->assertSame('foobar', $this->mockResponse->_get('content'));
 }