Exemple #1
0
	/**
	 * @todo Implement testSetGenerator().
	 */
	public function testSetGenerator() {
		$this->object = new JDocument;

		$this->object->setGenerator('Joomla Content Management');

		$this->assertThat(
			$this->object->_generator,
			$this->equalTo('Joomla Content Management')
		);
	}
Exemple #2
0
 /**
  * Test...
  *
  * @return  void
  */
 public function testGetGenerator()
 {
     $this->object->setGenerator('Joomla Content Management');
     $this->assertThat($this->object->getGenerator(), $this->equalTo('Joomla Content Management'));
 }
Exemple #3
0
 /**
  * @testdox  Test that setGenerator returns an instance of $this
  */
 public function testEnsureSetGeneratorReturnsThisObject()
 {
     $this->assertSame($this->object, $this->object->setGenerator('Joomla! Content Management System'));
 }