Skip to content

Commit

Permalink
Reorganize php74 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin V / vvval committed Nov 11, 2019
1 parent f05909f commit 3ad9c7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 50 deletions.
4 changes: 2 additions & 2 deletions tests/Promise/ProxyPrinter/ConstantsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public function testConstValues(): void
$output = ltrim($output, '<?php');

$this->assertStringContainsString(
'PUBLIC_PROPERTIES = [\'publicProperty\', \'publicPropertyWithDefaults\'];',
"PUBLIC_PROPERTIES = ['publicProperty', 'publicPropertyWithDefaults'];",
$output
);

$this->assertStringContainsString(
'UNSET_PROPERTIES = [\'publicProperty\', \'publicPropertyWithDefaults\'];',
"UNSET_PROPERTIES = ['publicProperty', 'publicPropertyWithDefaults'];",
$output
);
}
Expand Down
45 changes: 0 additions & 45 deletions tests/Promise/ProxyPrinter/ConstantsTest74.php

This file was deleted.

6 changes: 3 additions & 3 deletions tests/php74/ConstantsPHP74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public function testConstValues(): void

$output = $this->make($reflection, $class, $parent);
$output = ltrim($output, '<?php');
print_r(PHP_EOL . '74 version' . PHP_EOL);

$this->assertStringContainsString(
'PUBLIC_PROPERTIES = [\'publicProperty\', \'publicPropertyWithDefaults\'];',
"PUBLIC_PROPERTIES = ['publicProperty', 'publicTypedProperty', 'publicPropertyWithDefaults'];",
$output
);

$this->assertStringContainsString(
'UNSET_PROPERTIES = [\'publicProperty\', \'publicPropertyWithDefaults\'];',
"UNSET_PROPERTIES = ['publicProperty', 'publicPropertyWithDefaults'];",
$output
);
}
Expand Down

0 comments on commit 3ad9c7c

Please sign in to comment.