コード例 #1
0
ファイル: ExpectationsExpectations.php プロジェクト: xto/SUTA
 /**
  * @test
  */
 public function ShouldNotBeEqualShouldBehaveLikeAssertNotEquals()
 {
     self::assertNotEquals(1, 2);
     Expectations::shouldNotEqual(1, 2);
     try {
         self::assertNotEquals(1, 1);
         throw new Exception("assertNotEquals should fail when both elements are equal");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
     try {
         Expectations::shouldNotEqual(1, 1);
         throw new Expection("shouldNotEqual should fail when both elements are equal");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
 }