<?php namespace net\xp_framework\unittest\tests;

use unittest\actions\ExtensionAvailable;

/**
 * Test test action "Extension Available"
 */
class ExtensionAvailableTest extends \unittest\TestCase {

  #[@test]
  public function can_create() {
    new ExtensionAvailable('core');
  }

  #[@test]
  public function verify_core_extension() {
    $this->assertTrue((new ExtensionAvailable('core'))->verify());
  }

  #[@test]
  public function verify_non_existant_extension() {
    $this->assertFalse((new ExtensionAvailable('@@non-existant@@'))->verify());
  }
}

<?php namespace net\xp_framework\unittest\tests;

use unittest\actions\ExtensionAvailable;

/**
 * Test test action "Extension Available"
 */
class ExtensionAvailableTest extends \unittest\TestCase {

  #[@test]
  public function can_create() {
    new ExtensionAvailable('standard');
  }

  #[@test]
  public function verify_standard_extension() {
    $this->assertTrue((new ExtensionAvailable('standard'))->verify());
  }

  #[@test]
  public function verify_non_existant_extension() {
    $this->assertFalse((new ExtensionAvailable('@@non-existant@@'))->verify());
  }
}

Use "standard" extension instead of "core"
Use "standard" extension instead of "core"

See https://github.com/xp-framework/core/issues/47
