예제 #1
0
 /**
  * @test
  *
  * @covers Courier::__construct
  * @covers Courier::setSender
  */
 public function messageShouldHaveSender()
 {
     $expect = 'Recipient';
     $this->courier->setSender($expect);
     $class = new \ReflectionClass(Courier::class);
     $property = $class->getProperty('message');
     $property->setAccessible(true);
     $this->assertEquals($expect, $property->getValue($this->courier)['sender']);
 }