function testStringMismatch() { $not_hello = new NotEqualExpectation("Hello"); $this->assertTrue($not_hello->test("Goodbye")); $this->assertFalse($not_hello->test("Hello")); }
function testStringMismatch() { $not_hello = new NotEqualExpectation("Hello"); $this->assertTrue($not_hello->test("Goodbye")); $this->assertFalse($not_hello->test("Hello")); $this->assertPattern('/at character 0/', $not_hello->testMessage("Goodbye")); $this->assertPattern('/matches/', $not_hello->testMessage("Hello")); }
public function testStringMismatch() { $not_hello = new NotEqualExpectation('Hello'); $this->assertTrue($not_hello->test('Goodbye')); $this->assertFalse($not_hello->test('Hello')); }