How jandelson/tdd-php works
Project type and purpose
• This is a small PHP domain-library for auction (“leilão”) evaluation. There is no UI or web layer. Its purpose is to model auctions, bids (“Lance”), users, and provide a service that determines winning bids.
File structure
• Top-level files:
• composer.json / composer.lock – project dependencies & autoloading
• .gitignore
• teste-avaliador.php – example script showing how to run the evaluation
• src/Model – contains domain entities:
• Usuario.php (bidder)
• Leilao.php (auction)
• Lance.php (bid)
• src/Service – contains business logic:
• Avaliador.php (evaluates bids, finds highest, lowest, top-3 bids, etc.)
• tests/Service/AvaliadorTest.php – PHPUnit tests for Avaliador service
(empty) README
• No additional architecture notes. All insights come from code & structure.