public function testTitle() { $reflectionMethod = $this->getProtectMethod($this->controller, 'title'); $reflectionMethod->invokeArgs(new $this->controller(), ['title' => 'testing']); $section = \View::getSections(); $this->assertSame("Laravel Recipes日本語版 | testing", $section['title']); }