コード例 #1
0
ファイル: EqualsMatcherTest.php プロジェクト: ngyuki/phake
 /**
  * Tests that the equals matcher __toString function will work on values that don't implement __toString.
  *
  * Closes Issue #14
  */
 public function testToStringOnNonStringableObject()
 {
     $this->matcher = new Phake_Matchers_EqualsMatcher(new stdClass());
     $this->assertEquals('equal to <object:stdClass>', $this->matcher->__toString());
 }
コード例 #2
0
 /**
  * Tests that the equals matcher __toString function will work on values that don't implement __toString.
  *
  * Closes Issue #14
  */
 public function testToStringOnNonStringableObject()
 {
     $this->matcher = new Phake_Matchers_EqualsMatcher(new stdClass(), new \SebastianBergmann\Comparator\Factory());
     $this->assertEquals('equal to <object:stdClass>', $this->matcher->__toString());
 }