public function testShouldCallMethodsPropertlywithOneArgument() { $container = m::mock(Container::class); $container->shouldReceive('method')->once()->with(1)->andReturn(true); Ioc::setContainer($container); Ioc::method(1); }