/** @test */
 public function it_calls_a_static_method_with_the_value_as_an_argument_and_returns_the_result()
 {
     $fn = T\argumentTo([__CLASS__, 'staticDecrement']);
     $this->assertSame(3, $fn(4));
 }
Example #2
0
 /** @test */
 public function it_calls_a_function_with_a_positional_argument()
 {
     $fn = T\argumentTo('strpos', ['Tom: My name is Tom', __, 4]);
     $this->assertSame(16, $fn('Tom'));
 }