28 $this->mockResponse = $this->
getAccessibleMock(
'TYPO3\\CMS\\Extbase\\Mvc\\Response', array(
'dummy'));
35 $this->assertNull($this->mockResponse->_get(
'content'));
42 $this->mockResponse->setContent(
'foo');
43 $this->assertSame(
'foo', $this->mockResponse->_get(
'content'));
50 $this->mockResponse->_set(
'content',
'foo');
51 $this->mockResponse->appendContent(
'bar');
52 $this->assertSame(
'foobar', $this->mockResponse->_get(
'content'));
59 $this->mockResponse->_set(
'content',
'foo');
60 $this->assertSame(
'foo', $this->mockResponse->getContent());
67 $this->mockResponse->_set(
'content',
'foo');
68 $this->assertSame(
'foo', (
string) $this->mockResponse);
propertyContentInitiallyIsNull()
setContentSetsContentCorrectly()
__toStringReturnsActualContent()
getAccessibleMock( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
appendContentAppendsContentCorrectly()
getContentReturnsContentCorrectly()