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