Пример #1
0
	/**
	 * We test both at once
	 */
	public function testGetAndSetName() {
		$this->object->setName('unittestfilename');

		$this->assertThat(
			$this->object->getName(),
			$this->equalTo('unittestfilename'),
			'setName or getName did not work'
		);
	}
Пример #2
0
 /**
  * @testdox  Test that setName returns an instance of $this
  */
 public function testEnsureSetNameReturnsThisObject()
 {
     $this->assertSame($this->object, $this->object->setName('CMS'));
 }