/** * @test */ public function shouldReturnDescription() { //given $model = new Product(array('name' => 'product1')); $matcher = new ModelAttributesMatcher($model); //when $description = $matcher->__toString(); //then $attributes = print_r($model->attributes(), true); $this->assertEquals("Application\\Model\\Test\\Product with attributes({$attributes})", $description); }