/**
  * @test
  */
 public function it_should_sent_message()
 {
     $spy = new MessageSenderSpy();
     $config = SmsapiConfigMother::createDefault();
     $handler = new SmsapiHandler($spy, new SmsapiFormatterFactory($config), $config);
     $logger = new Logger('example');
     $logger->pushHandler($handler);
     $logger->addCritical('some critical bug');
     $this->assertTrue($spy->isSent);
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function it_should_accept_valid_formatter_date_format()
 {
     $validFormatterDateFormat = 'Y-m-d';
     SmsapiConfigMother::createWithGivenFormatterDateFormat($validFormatterDateFormat);
     $this->assertTrue(true);
 }