Пример #1
0
 /**
  * __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;
 }