Beispiel #1
0
 /**
  * @test
  */
 public function settersAndGettersShouldWork()
 {
     $message = new SmsMessage();
     $this->assertNull($message->getFrom());
     $this->assertNull($message->getBody());
     $this->assertEquals(array(), $message->getTo());
     $message->setFrom('Losoposki');
     $message->setBody('Ollaanko kavereita?');
     $message->addTo('358503028030');
     $this->assertEquals('Losoposki', $message->getFrom());
     $this->assertEquals('Ollaanko kavereita?', $message->getBody());
     $this->assertEquals(array('358503028030'), $message->getTo());
     $message->addTo('35850666');
     $this->assertEquals(array('358503028030', '35850666'), $message->getTo());
     $message->setTo('358503028031');
     $this->assertEquals(array('358503028031'), $message->getTo());
 }