Beispiel #1
0
 public function testSettingViewSuffixChangesInflectorSuffix()
 {
     $layout = new Layout\Layout();
     $inflector = $layout->getInflector();
     $rules = $inflector->getRules();
     $this->assertTrue(isset($rules['suffix']));
     $this->assertEquals($layout->getViewSuffix(), $rules['suffix']);
     $layout->setViewSuffix('php');
     $this->assertEquals($layout->getViewSuffix(), $rules['suffix']);
 }