assertTrue($model->hasNamedScope('exists')); } public function testModelDoesNotHaveScope() { $model = new TestScopeModel1; $this->assertFalse($model->hasNamedScope('doesNotExist')); } } class TestScopeModel1 extends Model { public function scopeExists() { return true; } }