Skip to content

Commit

Permalink
more fix for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-i committed Feb 2, 2022
1 parent 9037811 commit 3b3457e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function testFromConsoleInput(): void

$settings = (new TargetPhpSettingsFromConsoleInput())->createSettings($input);

$this->assertSame('{abc}', $settings->php_regex);
$this->assertSame('{def}', $settings->libpthread_regex);
$this->assertSame('abc', $settings->php_regex);
$this->assertSame('def', $settings->libpthread_regex);
$this->assertSame('v74', $settings->php_version);
$this->assertSame('ghi', $settings->php_path);
$this->assertSame('jkl', $settings->libpthread_path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function testCreateModuleReaderByNameRegexFallbackToDynamic()
$symbol_reader_creator->createModuleReaderByNameRegex(
1,
$process_memory_map,
'/\/test_module/',
'\/test_module',
null
)
);
Expand Down Expand Up @@ -115,7 +115,7 @@ function ($actual) {
$symbol_reader_creator->createModuleReaderByNameRegex(
1,
$process_memory_map,
'/\/test_module/',
'\/test_module',
null
)
);
Expand Down
6 changes: 3 additions & 3 deletions tests/Lib/Process/MemoryMap/ProcessMemoryMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public function testFindByNameRegex()
'test_area_2'
),
]);
$area1 = $memory_map->findByNameRegex('/.*1/');
$area2 = $memory_map->findByNameRegex('/.*2/');
$area_both = $memory_map->findByNameRegex('/test.*/');
$area1 = $memory_map->findByNameRegex('.*1');
$area2 = $memory_map->findByNameRegex('.*2');
$area_both = $memory_map->findByNameRegex('test.*');

$this->assertCount(1, $area1);
$this->assertCount(1, $area2);
Expand Down

0 comments on commit 3b3457e

Please sign in to comment.