public function testMake() { $diff = new tools\diffs\variable(); $exception = null; try { $diff->make(); } catch (\exception $exception) { } $this->assert->exception($exception)->isInstanceOf('mageekguy\\atoum\\exceptions\\runtime')->hasMessage('Expected is undefined'); $diff->setExpected($reference = uniqid()); try { $diff->make(); } catch (\exception $exception) { } $this->assert->exception($exception)->isInstanceOf('mageekguy\\atoum\\exceptions\\runtime')->hasMessage('Actual is undefined'); $diff->setActual($reference); $this->assert->array($diff->make())->isEqualTo(array(self::dumpAsString($reference))); }