public function onFinished(TestName $test) { $key = array_search($test->toString(), $this->running); if ($key !== false) { unset($this->running[$key]); } if (!$this->running) { $this->onEnd(); } }
function escapeSeparators(Assert $assert) { $name = new TestName('foo::bar::', ':b$az'); $assert($name->toString(), 'foo$:$:bar$:$:::$:b$$az'); }