@@ -41,9 +41,9 @@ public function testShouldThrowExceptionAfterSaveMethodRename()
4141        try  {
4242            FactoryMuffin::create ($ model  = 'ModelThatWillSaveStub ' );
4343        } catch  (SaveMethodNotFoundException   $ e ) {
44-             $ this  ->assertEquals ("The save method 'foo' was not found on the model of type: ' $ model'. " , $ e ->getMessage ());
45-             $ this  ->assertEquals ($ model , $ e ->getModel ());
46-             $ this  ->assertEquals ('foo ' , $ e ->getMethod ());
44+             $ this  ->assertSame ("The save method 'foo' was not found on the model of type: ' $ model'. " , $ e ->getMessage ());
45+             $ this  ->assertSame ($ model , $ e ->getModel ());
46+             $ this  ->assertSame ('foo ' , $ e ->getMethod ());
4747            $ this  ->assertInstanceOf ($ model , $ e ->getObject ());
4848            $ this  ->reload ();
4949            throw  $ e ;
@@ -64,10 +64,10 @@ public function testShouldThrowExceptionAfterDeleteMethodRename()
6464            FactoryMuffin::deleteSaved ();
6565        } catch  (DeletingFailedException   $ e ) {
6666            $ exceptions  = $ e ->getExceptions ();
67-             $ this  ->assertEquals ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
68-             $ this  ->assertEquals ("The delete method 'bar' was not found on the model of type: ' $ model'. " , $ exceptions [0 ]->getMessage ());
69-             $ this  ->assertEquals ($ model , $ exceptions [0 ]->getModel ());
70-             $ this  ->assertEquals ('bar ' , $ exceptions [0 ]->getMethod ());
67+             $ this  ->assertSame ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
68+             $ this  ->assertSame ("The delete method 'bar' was not found on the model of type: ' $ model'. " , $ exceptions [0 ]->getMessage ());
69+             $ this  ->assertSame ($ model , $ exceptions [0 ]->getModel ());
70+             $ this  ->assertSame ('bar ' , $ exceptions [0 ]->getMethod ());
7171            $ this  ->assertInstanceOf ($ model , $ exceptions [0 ]->getObject ());
7272            $ this  ->reload ();
7373            throw  $ e ;
@@ -84,8 +84,8 @@ public function testShouldThrowExceptionOnModelSaveFailure()
8484        try  {
8585            FactoryMuffin::create ($ model  = 'ModelThatFailsToSaveStub ' );
8686        } catch  (SaveFailedException   $ e ) {
87-             $ this  ->assertEquals ("We could not save the model of type: ' $ model'. " , $ e ->getMessage ());
88-             $ this  ->assertEquals ($ model , $ e ->getModel ());
87+             $ this  ->assertSame ("We could not save the model of type: ' $ model'. " , $ e ->getMessage ());
88+             $ this  ->assertSame ($ model , $ e ->getModel ());
8989            $ this  ->assertNull ($ e ->getErrors ());
9090            throw  $ e ;
9191        }
@@ -101,8 +101,8 @@ public function testShouldThrowExceptionOnModelDeleteFailure()
101101            FactoryMuffin::deleteSaved ();
102102        } catch  (DeletingFailedException   $ e ) {
103103            $ exceptions  = $ e ->getExceptions ();
104-             $ this  ->assertEquals ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
105-             $ this  ->assertEquals ("We could not delete the model of type: ' $ model'. " , $ exceptions [0 ]->getMessage ());
104+             $ this  ->assertSame ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
105+             $ this  ->assertSame ("We could not delete the model of type: ' $ model'. " , $ exceptions [0 ]->getMessage ());
106106            throw  $ e ;
107107        }
108108    }
@@ -117,8 +117,8 @@ public function testShouldAlsoThrowExceptionOnModelDeleteFailure()
117117            FactoryMuffin::deleteSaved ();
118118        } catch  (DeletingFailedException   $ e ) {
119119            $ exceptions  = $ e ->getExceptions ();
120-             $ this  ->assertEquals ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
121-             $ this  ->assertEquals ("OH NOES! " , $ exceptions [0 ]->getMessage ());
120+             $ this  ->assertSame ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
121+             $ this  ->assertSame ("OH NOES! " , $ exceptions [0 ]->getMessage ());
122122            throw  $ e ;
123123        }
124124    }
@@ -131,9 +131,9 @@ public function testShouldThrowExceptionWithoutSaveMethod()
131131        try  {
132132            FactoryMuffin::create ($ model  = 'ModelWithNoSaveMethodStub ' );
133133        } catch  (SaveMethodNotFoundException   $ e ) {
134-             $ this  ->assertEquals ("The save method 'save' was not found on the model of type: ' $ model'. " , $ e ->getMessage ());
135-             $ this  ->assertEquals ($ model , $ e ->getModel ());
136-             $ this  ->assertEquals ('save ' , $ e ->getMethod ());
134+             $ this  ->assertSame ("The save method 'save' was not found on the model of type: ' $ model'. " , $ e ->getMessage ());
135+             $ this  ->assertSame ($ model , $ e ->getModel ());
136+             $ this  ->assertSame ('save ' , $ e ->getMethod ());
137137            $ this  ->assertInstanceOf ($ model , $ e ->getObject ());
138138            throw  $ e ;
139139        }
@@ -149,10 +149,10 @@ public function testShouldThrowExceptionWithoutDeleteMethod()
149149            FactoryMuffin::deleteSaved ();
150150        } catch  (DeletingFailedException   $ e ) {
151151            $ exceptions  = $ e ->getExceptions ();
152-             $ this  ->assertEquals ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
153-             $ this  ->assertEquals ("The delete method 'delete' was not found on the model of type: ' $ model'. " , $ exceptions [0 ]->getMessage ());
154-             $ this  ->assertEquals ($ model , $ exceptions [0 ]->getModel ());
155-             $ this  ->assertEquals ('delete ' , $ exceptions [0 ]->getMethod ());
152+             $ this  ->assertSame ("We encountered 1 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
153+             $ this  ->assertSame ("The delete method 'delete' was not found on the model of type: ' $ model'. " , $ exceptions [0 ]->getMessage ());
154+             $ this  ->assertSame ($ model , $ exceptions [0 ]->getModel ());
155+             $ this  ->assertSame ('delete ' , $ exceptions [0 ]->getMethod ());
156156            $ this  ->assertInstanceOf ($ model , $ exceptions [0 ]->getObject ());
157157            throw  $ e ;
158158        }
@@ -166,9 +166,9 @@ public function testShouldThrowExceptionWithValidationErrors()
166166        try  {
167167            FactoryMuffin::create ($ model  = 'ModelWithValidationErrorsStub ' );
168168        } catch  (SaveFailedException   $ e ) {
169-             $ this  ->assertEquals ("Failed to save. We could not save the model of type: ' $ model'. " , $ e ->getMessage ());
170-             $ this  ->assertEquals ($ model , $ e ->getModel ());
171-             $ this  ->assertEquals ('Failed to save. ' , $ e ->getErrors ());
169+             $ this  ->assertSame ("Failed to save. We could not save the model of type: ' $ model'. " , $ e ->getMessage ());
170+             $ this  ->assertSame ($ model , $ e ->getModel ());
171+             $ this  ->assertSame ('Failed to save. ' , $ e ->getErrors ());
172172            throw  $ e ;
173173        }
174174    }
@@ -184,11 +184,11 @@ public function testShouldThrowMultipleDeletionExceptions()
184184            FactoryMuffin::deleteSaved ();
185185        } catch  (DeletingFailedException   $ e ) {
186186            $ exceptions  = $ e ->getExceptions ();
187-             $ this  ->assertEquals ("We encountered 2 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
188-             $ this  ->assertEquals ("OH NOES! " , $ exceptions [0 ]->getMessage ());
189-             $ this  ->assertEquals ("The delete method 'delete' was not found on the model of type: ' $ model'. " , $ exceptions [1 ]->getMessage ());
190-             $ this  ->assertEquals ($ model , $ exceptions [1 ]->getModel ());
191-             $ this  ->assertEquals ('delete ' , $ exceptions [1 ]->getMethod ());
187+             $ this  ->assertSame ("We encountered 2 problem(s) while trying to delete the saved models. " , $ e ->getMessage ());
188+             $ this  ->assertSame ("OH NOES! " , $ exceptions [0 ]->getMessage ());
189+             $ this  ->assertSame ("The delete method 'delete' was not found on the model of type: ' $ model'. " , $ exceptions [1 ]->getMessage ());
190+             $ this  ->assertSame ($ model , $ exceptions [1 ]->getModel ());
191+             $ this  ->assertSame ('delete ' , $ exceptions [1 ]->getMethod ());
192192            $ this  ->assertInstanceOf ($ model , $ exceptions [1 ]->getObject ());
193193            $ this  ->assertInternalType ('array ' , $ e ->getExceptions ());
194194            $ this  ->assertCount (2 , $ e ->getExceptions ());
0 commit comments