Ejemplo n.º 1
0
	/**
	 * 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'
		);
	}
Ejemplo n.º 2
0
 /**
  * @testdox  Test the default return for getBuffer is null
  */
 public function testTheDefaultReturnForGetBufferIsNull()
 {
     $this->assertNull($this->object->getBuffer());
 }