public function equals($expected) { if (!$this->isFileExpectation) { a::assertEquals($expected, $this->actual, $this->description); } else { a::assertFileEquals($expected, $this->actual, $this->description); } }