public function assertIsNotNullWithNull()
 {
     $verifyFailed = false;
     try {
         $this->target->isNotNull(null);
     } catch (Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsTrueWith1ExpectFail()
 {
     $verifyFailed = false;
     try {
         $this->target->isTrue(1);
     } catch (Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsNotFloatWithFloat()
 {
     $verifyFailed = false;
     try {
         $this->target->isNotFloat(1.1);
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertAreIdenticalWithDifferentFloats()
 {
     $verifyFailed = false;
     try {
         $this->target->areIdentical(15.123346575, 15.123346574);
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertFailExpectError()
 {
     $verifyFailed = false;
     try {
         $this->target->fail();
     } catch (Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsArrayWithNumber()
 {
     $verifyFailed = false;
     try {
         $this->target->isArray(500);
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsIntWithString()
 {
     $verifyFailed = false;
     try {
         $this->target->isInt('1');
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertContainsWithStringThatDoesNotContain()
 {
     $verifyFailed = false;
     try {
         $this->target->contains('Test', 'Some Other String');
     } catch (Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsNotScalarWithBool()
 {
     $verifyFailed = false;
     try {
         $this->target->isNotScalar(true);
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsNumericWithNormalString()
 {
     $verifyFailed = false;
     try {
         $this->target->isNumeric('xyz');
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsStringWithInteger()
 {
     $verifyFailed = false;
     try {
         $this->target->isString(1);
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsScalarWithObject()
 {
     $verifyFailed = false;
     try {
         $object = new \Enhance\TextFactory();
         $this->target->isScalar($object);
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsNotInstanceOfTypeWithIdenticalTypes()
 {
     $verifyFailed = false;
     $object = new SomeOtherType();
     try {
         $this->target->isNotInstanceOfType('SomeOtherType', $object);
     } catch (Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertIsNotArrayWithArray()
 {
     $verifyFailed = false;
     try {
         $array = array('foo' => 'bar', 12 => true);
         $this->target->isNotArray($array);
     } catch (\Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertThrowsWithArgumentsAndNoExceptionExpectFail()
 {
     $Stub = new StubThrowsClass();
     $verifyFailed = false;
     try {
         $this->target->throws($Stub, 'doesNotThrowWithArgs', array(4, 4));
     } catch (Exception $e) {
         $verifyFailed = true;
     }
     \Enhance\Assert::isTrue($verifyFailed);
 }
 public function assertNotContainsWithStringThatDoesNotContain()
 {
     $this->target->notContains('Test', 'Some Other String');
 }