matches() публичный Метод

public matches ( $argument )
Пример #1
0
 /**
  * @test
  */
 public function shouldReturnFalseIfDifferentAttributes()
 {
     //given
     $model1 = new Product(array('name' => 'product1'));
     $model2 = new Product(array('name' => 'product2'));
     $matcher = new ModelAttributesMatcher($model1);
     //when
     $result = $matcher->matches($model2);
     //then
     $this->assertFalse($result);
 }