public function test_seotools_trait() { $stub = m::mock(SeoToolsTraitStub::class); $stub->shouldReceive('makeSeoForTests')->andReturn($this->app['seotools']); $this->assertInstanceOf(SEOTools::class, $stub->makeSeoForTests()); }