public function test_call_with_invalid_callable() { $container = new Container(); $this->setExpectedException(InvalidCallableFormatException::class); $this->assertEquals(1, $container->call(['foo'], ['array' => [1]])); }