assertTrue(true); } if (is_string(Utils::config(ConfigKey::AppName))) { $this->assertTrue(true); } if (Utils::config(ConfigKey::Mail) instanceof Collection) { $this->assertTrue(true); } if (is_array(Utils::config(ConfigKey::Mail.'.mailers'))) { $this->assertTrue(true); } if (is_bool(Utils::config(ConfigKey::IsAllowGuestUpload))) { $this->assertTrue(true); } } public function test_array_filter_recursive() { $array = Utils::filter([ 'name' => 'Lsky', 'age' => null, 'configs' => [ 'one' => null, 'two' => 1 ] ]); if (! array_key_exists('age', $array)) { $this->assertTrue(true); } if (! array_key_exists('one', $array['configs'])) { $this->assertTrue(true); } if (! array_key_exists('two', $array['configs'])) { $this->assertTrue(true); } } }