Beispiel #1
0
 public function testCallSettersWithAllowed()
 {
     $input = ['first_name' => 'content', 'last_name' => null];
     $mock = Mockery::mock();
     $mock->shouldReceive('setFirstName');
     $mock->shouldReceive('setLastName');
     Std::callSetters($mock, $input, ['first_name']);
     $mock->shouldHaveReceived('setFirstName', ['content']);
     $mock->shouldNotHaveReceived('setLastName');
 }