예제 #1
0
파일: WordTest.php 프로젝트: jstewmc/rtf
 /**
  * __construct() should return word element if parameter is not null
  */
 public function testConstruct_returnsElement_ifParameterIsNotNull()
 {
     $parameter = 1;
     $word = new Word($parameter);
     $this->assertTrue($word instanceof Word);
     $this->assertEquals('word', $word->getWord());
     $this->assertEquals($parameter, $word->getParameter());
     return;
 }