コード例 #1
0
 public function testComposeFailsIfConfigurationNotFound()
 {
     $test = new DayComposer();
     $this->setupMockConfig('fail');
     $view = $this->getMockView(Null, Null);
     $view->shouldReceive('with')->with('dayTitle', Null)->once();
     $view->shouldReceive('with')->with('day', Null)->once();
     $test->compose($view);
 }
コード例 #2
0
 public function compose($view)
 {
     parent::compose($view);
     $this->view->with('day3', $this->getPaddedDayValue());
 }
コード例 #3
0
 public function compose($view)
 {
     parent::compose($view);
     $this->loadPropertyFromConfig('dayPath', self::DAY_PATH);
     $this->view->with('dayLink', $this->getDayLink());
 }