/** * Test setBuffer */ public function testSetBuffer() { $this->object = new JDocument; $this->object->setBuffer('This is the content of my document'); $this->assertThat( $this->object->getBuffer(), $this->equalTo('This is the content of my document'), 'setBuffer did not properly set document contents' ); }
/** * @testdox Test the default return for getBuffer is null */ public function testTheDefaultReturnForGetBufferIsNull() { $this->assertNull($this->object->getBuffer()); }