/** * Tests getting the name using Mediator class accessor method. */ public function testViewAccessor() { // Create a view object $view = new stdClass(); // Create a new Mediator and use accessors to set the mediator name $mediator = new Mediator(Mediator::NAME, $view); // test assertions $this->assertNotNull($mediator->getViewComponent(), "Expecting mediator.getViewComponent() not null"); }