Exemplo n.º 1
0
 /**
  * @test
  */
 public function ShouldNotContainShouldBehaveLikeAssertNotContains()
 {
     self::assertNotContains("tom", "something else");
     Expectations::shouldNotContain("tom", "something else");
     try {
         self::assertNotContains("tom", "tom");
         throw new Exception("assertNotContains should fail if the pattern is in the value");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
     try {
         Expectations::shouldNotContain("tom", "tom");
         throw new Exception("shoulNotContain should fail if the pattern is in the value");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
 }