public function testWithWillCallAddNamespaceOnBuilder() { $builder = m::mock(FlowBuilderInterface::class); Flow::setBuilder($builder); $builder->shouldReceive('addNamespace')->with('Graze\\DataFlow\\')->once(); Flow::with('Graze\\DataFlow\\'); }