/** * @covers \Phinx\Config\Config::replaceTokens * @covers \Phinx\Config\Config::recurseArrayForTokens */ public function testReplaceTokensRecursive() { $config = new Config(array('folding' => array('some-var-1' => 'includes/%%PHINX_TEST_VAR_1%%', 'some-var-2' => 'includes/%%NON_PHINX_TEST_VAR_1%%', 'some-var-3' => 'includes/%%PHINX_TEST_VAR_2%%', 'some-var-4' => 123456))); $folding = $config->offsetGet('folding'); $this->assertContains(static::$server['PHINX_TEST_VAR_1'] . '', $folding['some-var-1']); $this->assertNotContains(static::$server['NON_PHINX_TEST_VAR_1'] . '', $folding['some-var-2']); $this->assertContains(static::$server['PHINX_TEST_VAR_2'] . '', $folding['some-var-3']); }